Countdown timer reset

GS noob here.... I am having trouble figuring out how to reset the countdown timer in my levels. When the countdown timer reaches 0, scene changes to another scene that shows the player's score as well as high score for the level. Player has the option of "play again" "proceed to the next level". If the level is played again, the timer does not reset. Here is how I have the timer set up:

Game Timer integer attribute set at 30

Actor displays game timer in scene has the following rules:
When attribute game.Game Timer > 0, Timer every 1 seconds change attribute game.Game Timer to game.Game Timer-1
When attribute game.Game Timer = 0, change scene to end level

Comments

  • SmokeyAce73SmokeyAce73 EarthMember Posts: 370
    edited April 2014

    on the PlayAgain actor add this:

    Change attribute game.timer to 30 (or whatever you want it set to)

    EDIT: If your using a Boolean to say whether InPlay is true or not put the rule as:

    • If attribute game.InPlay is false
    • Change attribute game.timer to 30

    Developer For BLUNTentertainment - Feel Free To Message Me! - Free Beginner Templates!

Sign In or Register to comment.