Problem with using the timer behavior inside a rule
![trilokpotluri](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
I have a power up which doubles the player speed for about 5 seconds..so i made a new attribute: players_speed..I set it to 1 initially and my players speed is (game.players_speed*600)...so its basically 600..
But wen i use a timer inside a rule saying when player collides with power up for 5 seconds change atribute: players_speed=2...its doubling the speed permanently and not returning to its original speed...
Is there something with using timers inside a rule that im not aware of?
But wen i use a timer inside a rule saying when player collides with power up for 5 seconds change atribute: players_speed=2...its doubling the speed permanently and not returning to its original speed...
Is there something with using timers inside a rule that im not aware of?
Best Answer
-
kinzua Posts: 554
@trilokpotluri double check ur logic.. u must be looping it somehow.. u can also add.. after 5s.. change speed to x..
Answers
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx