reset the countdown timer

kesh17akikesh17aki Member Posts: 8
edited September 2012 in Working with GS (Mac)
how can i reset the timer when i pressed replay.. i have a problem with this specially when my timer =0 it will spawn the actor clean again. but when i tried to reset, my timer continues to count from -1, -2, and so on.. how will i solve this?

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    The normal way is to have a game.integer lets call it counter then do if counter > 0 every X seconds counter = counter -1.

    You can then change the counter to what ever you want when you reset.

    Darren.
  • kesh17akikesh17aki Member Posts: 8
    ok so how will i code this? is this how it looks?

    rule
    attribute game.My Timer > 0
    change attribute: game.counter to game.counter-1
Sign In or Register to comment.