User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13

Thread: Gradual speed increase help

  1. #1
    No Products Registered

    Join Date
    May 2009
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Gradual speed increase help

    I want an object to constantly add 1 to the speed every 2 seconds, and I've noticed that you can do this like this:

    New Condition - Always
    Then in the always row, under the object, click movement, then "set speed to", and enter "(seconds/2)+10"

    And it works, except after a little while (when the speed reaches about 70), it resets to about 10 and starts the speed increase event all over again.

    I'm guessing it's a "max speed" issue, so is there any way to disable a maximum speed? Or is there a better way to do what I'm trying to do?

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Gradual speed increase help

    Add another condition with your "Always":

    +Always
    +Speed is < 70

    --> Set Speed to "(seconds/2)+10"

    stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  3. #3
    Clickteam Clickteam
    Olivier's Avatar
    Join Date
    Jun 2006
    Posts
    3,003
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)

    Re: Gradual speed increase help

    The timer count "seconds" will reset to 0 every minute, and won't ever exceed 59. Try the following which will increase the speed by 10 every cycle, but won't exceed 150: (pseudo-code)
    Code:
    • Always
       + Set speed to Min (150 , speed + 10)

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

    Join Date
    Jun 2006
    Location
    UK
    Posts
    519
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Gradual speed increase help

    I might be mis-understanding what your after here, but are you not over complicating this

    Why not just use

    Every 2 Seconds
    Set speed of object to speed of itself + 1

    ?

  5. #5
    No Products Registered

    Join Date
    May 2009
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Gradual speed increase help

    I want the speed of the object to increase by 1 every 2 seconds, forever.

    So it will keep getting faster and faster (without ever slowing down or resetting)

    Steph, your solution didn't change anything...
    Oliver, your code just gave me a syntax error... Exactly what part of it am I supposed to enter?
    and Spike, that's what I've already done, and it doesn't work.

  6. #6
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export Module
    Chaos's Avatar
    Join Date
    Aug 2006
    Location
    Burnsville, MN, USA
    Posts
    807
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Gradual speed increase help

    Actually, Spikes method should work perfectly. What type of movement are you using?

    Every 2" --> Set speed(object) to speed(object)+1

    I use that on most of my particle effects and it works perfectly with bouncing ball movement.

  7. #7
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Gradual speed increase help

    Okay I played around in the event editor and this code snippet seems to do what you need it to do



    Instead of adding to the object's speed directly, add 1 to the object's Alterable Value A every interval and always set the maximum speed of the object to the value of Alt Val A.

    I have the movement set to eight directional in this example and it works.

    I just used .5 seconds for faster testing, obviously you'll want to change that to whatever number you need.

    Note: setting max speed value might not be ideal if you don't have the acceleration maxed, but if you play around you should figure out what you need. This is just basic code, and you will need to customize and put restraints on the max value to be added to Alt Val A, Alt Val A's initial value, etc.

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

    Join Date
    Jun 2006
    Location
    UK
    Posts
    519
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Gradual speed increase help

    Again, I can't see how my method doesn't work and is simpler?

    From your post you haven't done what I suggested, as my method wouldn't ever slow down and would keep going.

    Dunno :\ the other methods work, but they just appear to be work arounds.


  9. #9
    No Products Registered

    Join Date
    May 2009
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Gradual speed increase help

    What I sort of forgot to mention (sorry) is that my object is randomly spawned every second, and is destroyed when it reaches the bottom of the screen, so Shawn, your answer would have worked, but it makes each spawn start out at zero and gradually increase speed until it hits the bottom... I need the over all speed for every instance of my object to increase.
    And spike, yours didn't work at all, it doesn't slow down, but it doesn't ever speed up either. Here's how I interpreted your method:

    "Every 2 Seconds - Set speed of object to "object speed"+1
    And it just stayed going the same speed forever. Don't know why...

  10. #10
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Gradual speed increase help

    Quote Originally Posted by Spike
    Again, I can't see how my method doesn't work and is simpler?

    From your post you haven't done what I suggested, as my method wouldn't ever slow down and would keep going.

    Dunno :\ the other methods work, but they just appear to be work arounds.
    Well in testing it, your method only works if you add to max speed. And if you let go of the arrow keys, the val for whatever reason seems to be resetting for max speed. In theory that code you posted should work, but it didn't for me unless I overlooked something.

    Quote Originally Posted by TheWonkits
    And spike, yours didn't work at all, it doesn't slow down, but it doesn't ever speed up either. Here's how I interpreted your method:

    "Every 2 Seconds - Set speed of object to "object speed"+1
    And it just stayed going the same speed forever. Don't know why...
    I had the same results when testing his method. Again, in theory that series of events should work, but it doesn't.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. How to increase animation speed in game
    By MonDieu72 in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 19th December 2013, 02:43 AM
  2. Does timer speed increase with the framerate?
    By MechatheSlag in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 7th April 2010, 08:34 PM
  3. Increase speed
    By Rabagast in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 16th February 2010, 06:06 AM
  4. Gradual increase in speed of object
    By OldGuy in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 4th November 2008, 09:16 PM
  5. Speed Increase in next beta release? (please!?!)
    By Tuna in forum Hardware Accelerated Runtime
    Replies: 12
    Last Post: 5th October 2008, 08:38 PM

Posting Permissions

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