Reseting actor speed!!! Please help
Hi there, I'm creating a game(similar to redbit escape) where every 2 seconds the actor(enemy) speed(integer attribute @150) increases by 5. This is only valid when the player presses their actor(hero), which turns game.Start to true, aka everything on the screen starts moving.
The way I've created it is:
Rule: when attribute game.Start is true, Timer: every 2 seconds change attribute game.Speed to game.Speed+5.
It works fine but I can't figure out how to reset the actor(enemy) speed back to 150 or the original game.Speed when the game is over. I've tried so many variations including Rule: when game.Start is false, change attribute game.Speed to 150.
Every time when I hit the try again button on my gameover screen, the next game starts with the already increased speed.
Please help! Thank you
Best Answers
-
colander Posts: 1,610
Put the attributes you want reset in your try again button and make sure they are at the top of your rule so they are reset before anything else is done.
Answers
Thanks so much guys! It worked