GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Stoping a timer when paused

ohshoeohshoe Posts: 44Member

Hi so I made a timer and a self pause and i got it to ware it show the timer stops when it is pause but then when it underpasses it just just down the amount of time you were in the pause menu i used these to videos to make the timer and pause can anyone help me??

TIMER :
PAUSE :

Comments

  • natzuurnatzuur Posts: 304Member

    @ohshoe said:
    Hi so I made a timer and a self pause and i got it to ware it show the timer stops when it is pause but then when it underpasses it just just down the amount of time you were in the pause menu i used these to videos to make the timer and pause can anyone help me??

    TIMER :
    PAUSE :

    little confused, is this using the pause behavior? Self attributes wont persist through scenes. If that's the case, use a global variable instead.

    Maybe state what you are trying to accomplish (countdown pauses when game is paused and resumes after a pause?) and then we can try and help you out a bit better.

  • The_Gamesalad_GuruThe_Gamesalad_Guru Posts: 9,913Member

    Have you tried using the pause behavior?

  • ohshoeohshoe Posts: 44Member

    yes have tried to use the pause behavior and it wont work... cause i don't want it to go to a different scene... i think i could do it by making a timer count up when it is paused then add that to the original time

  • ohshoeohshoe Posts: 44Member

    have in it count up then add it didn't work... I can send a download link to you if you could look at it for me please @The_Gamesalad_Guru‌ @bjandthekatz‌

  • stackpoolestackpoole Melbourne, Victoria, AustraliaPosts: 473Member, PRO

    the pause behaviour works fine. it won't stuff up your game. everything works fine. Have you tried it?
    Just use the unpause behaviour when unpausing..

    Sydney Swans 2014!!

Sign In or Register to comment.