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

  • colandercolander Posts: 1,610
    Accepted Answer

    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.

  • scuurproscuurpro Posts: 63
    edited May 2014 Accepted Answer

    Does the timer have it set to run to completion?
    If so disable that

    If not @colander is correct I also made u a little Game speed file hopefully it will be helpful.

Answers

Sign In or Register to comment.