Countdown timer reset
CCLadTech
Member Posts: 1
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
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:
Developer For BLUNTentertainment - Feel Free To Message Me! - Free Beginner Templates!