Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Pause Timer

Author
Message
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 24th Feb 2016 07:49
Hi all,

I was recently asked how you would pause a timer on PM so I thought I'd share my reply as it may be useful for someone:

You just need to maintain a variable for your timer. Increment it each frame when not paused, and don't increment it when paused. Example:


V2 T1 (Mostly)
Phone Tap!
Uzmadesign
Behdadsoft
15
Years of Service
User Offline
Joined: 7th Apr 2009
Location: Tehran-Iran
Posted: 24th Feb 2016 08:28
Hi.

Thanks for share your knowledge.

already I used this method for stop timer in my Duck shooter game after pause.

Login to post a reply

Server time is: 2024-11-25 09:56:22
Your offset time is: 2024-11-25 09:56:22