How can I have timer reset when I go back to a scene?

bajashbajash Member, PRO Posts: 215
edited December 2011 in Working with GS (Mac)
Hi All,

I have a timer in 5 different scenes. The timer are set to 15 seconds and they change to another scene when the reach 0. Easy.
But I would like each of these timers to restart in these scene so when I go back to a scene it is constantly (looping) counting down to 0. I am finding when scenes change my timers do not automatically reset when I go back to them. Is there a way to do this?

Thank you.

Comments

  • mu-kowAPPSmu-kowAPPS Member Posts: 233
    You could have an actor in each level that just changes the timer attribut to whatever u want.
  • bajashbajash Member, PRO Posts: 215
    Do you mean a separate actor from my timer actor?
  • CloudsClouds Member Posts: 1,599
    Great video, really helpful and much appreciated !

  • bajashbajash Member, PRO Posts: 215
    Thank you T-shirt!!!
  • bajashbajash Member, PRO Posts: 215
    Hi Tshirtbooth,
    Is it possible to pause a timer like this?

    Thanks
  • GLGAMESGLGAMES SingaporeMember Posts: 988
    using the conventional every 1sec timer = timer-1
    pause function also pauses the timer.
    and so simply when clicking reset or retry button change attribute timer to your original value.
  • bajashbajash Member, PRO Posts: 215
    Hi Tshirtbooth,

    I had already done this and it did not work. My timers would keep running.

    Bajash
  • rbnarcosrbnarcos Member Posts: 11
    Yes I'am trying to figure out how to pause the timer like the one in the video when you pause your scene. When you pause the game it keeps on running.
Sign In or Register to comment.