How to Do Speed Boosts?

Hi I'm creating an endless runner RPG, and theres a store in the main menu where the player can buy speed boosts. The player then goes to a pause menu while playing which is the inventory to use it. How can I program it so that when the player uses a speed boost item, the player's speed is doubled for 5 seconds? Please help soon

Comments

  • KevinCrossKevinCross London, UKMember Posts: 1,894
    edited August 2013
    Something like:

    Rule: When Speed Boost Used
    Change Attribute: Speed = Speed * 2
    Timer: After 5 Seconds
    Change Attribute: Speed = Speed / 2

    Put the speed / 2 change attribute inside the timer block.
  • quickclawappsquickclawapps Member Posts: 9
Sign In or Register to comment.