User Tag List

Results 1 to 8 of 8

Thread: following a line on holding down a button

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Aug 2010
    Posts
    254
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    following a line on holding down a button

    So say u have a set path like a bunch nodes. Like a train track and when you hold down right arrow you go down that train track and when u hold left u go back the other direction. The path is also not straight it would twist and turn at some points.


    How would you do this? Can anyone provide an example?

  2. #2
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    Sumo's Avatar
    Join Date
    Jul 2008
    Posts
    642
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I would probably plot the nodes X and Y coordinates in a list or array object. Then when you move with the arrow keys, it will cycle to the next or previous line and read the coordinates. Depending on how you have your movement setup, you move the character there. Don't let them go to the next node until you reach the one you're already moving towards.

    For curves you would have to plot a few nodes to smooth it out.

    That's my thought process on how I would attempt it. Maybe other people will have ideas.


    Sent from my iPhone using Tapatalk

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Aug 2010
    Posts
    254
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I see, yea if anyone has an example of this that would be much appreciated.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Aug 2010
    Posts
    254
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    any examples? i wouldnt know how to set that up

  5. #5
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    Sumo's Avatar
    Join Date
    Jul 2008
    Posts
    642
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    If someone doesn't make you an example, I'll try it later tonight when I get home from work.


    Sent from my iPhone using Tapatalk

  6. #6
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    Sumo's Avatar
    Join Date
    Jul 2008
    Posts
    642
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hopefully this example will give you an idea of what to think about.

    I used active objects as nodes so you could easily see the path, but if you actually wanted to implement this you would probably plot the coordinates and read from the list (preferably using an array object since it's faster). Therefore you wouldn't increase your object count in your frame. For example one row in your array could be a node. The Y index of the list can represent the node ID. Then you just need to record the X and Y positions of that node in separate cells on that row.
    Attached files Attached files

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Aug 2010
    Posts
    254
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thank you sumo. nice to hear from you again. how are things?

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Aug 2010
    Posts
    254
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    this would make a cool level select. the idea i had won neccisarly work because its too bogged down.

Similar Threads

  1. Rotation issue: Click button, rotate object X degrees, stop (without holding key)
    By Babalucci in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 8th April 2016, 03:10 AM
  2. Animation not playing when holding a mouse button
    By mobichan in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 10th March 2009, 05:56 PM
  3. Holding one button and pressing another
    By aeroshock in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 19th September 2008, 03:42 AM
  4. Animation stuck while holding a fire button.
    By Kris in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 14th June 2008, 09:47 AM
  5. user holding down mouse button on object
    By TwistidChimp in forum The Games Factory 2 - Technical Support
    Replies: 14
    Last Post: 7th May 2007, 11:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •