How to reset the Time

creptoo59creptoo59 Member Posts: 3
edited November -1 in Working with GS (Mac)
In my game I have a time limit and when time is up it says "you lose click to play again" but when you play again there is no time limit, so how do I reset that time?

Comments

  • cartercarter Member Posts: 133
    Reset the scene
  • cartercarter Member Posts: 133
    or on click change atribute Game.time to "30"
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    @Carter Reset scene does not reset the time, and neither will changing game.time. You cannot change or move the game.time attribute back. That is a constant attribute that adds when the game is running no matter what, and cant be manipulated back.

    Make your own attribute called playtime when you start the game every 1 second change playtime to playtime+1 then whenever you want to reset the time change playtime to 0.
  • XizaxXizax Member Posts: 46
    go to the click to play again and change attribute game.time to (whatever you want)
    basically what carter said the second time
  • XizaxXizax Member Posts: 46
    @john OH i thought that game.time was a custom attribute so nvm
Sign In or Register to comment.