Acceleration speed! Please help!

topgamestopgames Member Posts: 7
edited April 2012 in Working with GS (Mac)
Hi,

I want my actor (in this case an airplane) to increase speed depending on time. Can someone please help me with this issue?

Thank you in advance.

Answers

  • theCodeMonsterstheCodeMonsters Member Posts: 359
    What do you mean by on Time?
  • topgamestopgames Member Posts: 7
    Like if the airplane is flying for 1min at a max speed of 100 and I want to make the game more difficult by increasing the speed to 200 after 1min. Is this possible ?
  • theCodeMonsterstheCodeMonsters Member Posts: 359
    edited April 2012
    Yes. Use a timer to keep a global time, then set a rule in your airplane actor that says

    if globalTime is greater than or equal to 200
    Set self.Maxspeed = 200
    Accelerate 200

    If you need me to give you more explanation I'll gladly make a video showing you how to do this.
  • topgamestopgames Member Posts: 7
    Yes a video would be very nice and kind of you because I am new to this. And I think many more people need this.
Sign In or Register to comment.