Stoping a timer when paused

ohshoeohshoe Member Posts: 44

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 Member Posts: 304

    @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 Member Posts: 9,922

    Have you tried using the pause behavior?

  • ohshoeohshoe Member Posts: 44

    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 Member Posts: 44

    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, AustraliaMember, PRO Posts: 473

    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.