Gradually increasing the speed of an actor over time

mturner000mturner000 Member Posts: 9
edited November -1 in Working with GS (Mac)
I've searched the forum for an answer too my problem and the only answer I saw I couldn't understand. I was hoping to use the timer and the accelerate behaviors but I need a way to increase the speed by 20 every 5 seconds but the obvious way that this would work would be to use a simple + 20 in the expression. How can I simply speed up the actor incrementally every 5 seconds?

Thanks,

Mark

Comments

  • JeffreyShimaneJeffreyShimane Member Posts: 372
    Create a timer and a game attribute called GameSpeed. Every 5 seconds, increase the GameSpeed attribute by 20.

    In your accelerate behavior, instead of using a number, use the GameSpeed attribute for your speed. This way, the accelerate behavior will increase as GameSpeed increases.

    - Jeff
  • mturner000mturner000 Member Posts: 9
    I've searched the forum for an answer too my problem and the only answer I saw I couldn't understand. I was hoping to use the timer and the accelerate behaviors but I need a way to increase the speed by 20 every 5 seconds but the obvious way that this would work would be to use a simple + 20 in the expression. How can I simply speed up the actor incrementally every 5 seconds?

    Thanks,

    Mark
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    topics merged.
  • mturner000mturner000 Member Posts: 9
    Sorry about the double post. Typing on my iPad. Didn't see the first post go through. I'll do my best to not do that again. I'm a real newbie. How do I increase the "game speed attribute", Jeff? I'm not trying to be obtuse, I'm trying to understand how the acceleration behavior works. Where do I put the game speed attribute. Does it go into the expression editor? I've tried that and it didn't seem to work. I'm sorry to seem so dense, but I could use some further details.

    Thanks a lot for your help,

    Mark
  • mturner000mturner000 Member Posts: 9
    Thanks all for your help. Got it all working now. Appreciate all your answers.

    Mark
Sign In or Register to comment.