How do I make a timer count when the game is off

Get help using Construct 2

Post » Tue Jul 19, 2016 7:04 pm

I am trying to make an idle clicker, that continues to add points after the game is shut off. Any help with the timer would be nice.
B
12
S
3
Posts: 30
Reputation: 842

Post » Tue Jul 19, 2016 7:24 pm

Get the system time - https://www.scirra.com/tutorials/940/ho ... -a-project

Convert to base units of seconds.

Record via variable/localstorage/ect.

Compare with last recorded system time on resume to calculate how much time has passed.

This system is cheatable by modifying the system time. Otherwise, you will need a server side time check. Or, figure out how to request the current date/time from a timeserver.
Mistakes were made.
B
54
S
28
G
115
Posts: 1,705
Reputation: 65,083

Post » Wed Jul 20, 2016 2:49 pm

Thanks man, I didn't even know where to begin with this.
B
12
S
3
Posts: 30
Reputation: 842


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests