I need a function that resets the score every day at 00:00

Get help using Construct 2

Post » Sat Dec 31, 2016 11:20 am

How do I do this?

Lets say I have "Score".

And every day the time hits 00:00 GMT (Or just midnight if that makes it simplier (on your phones clock)), the score resets, how do I do this?

Game is for an android game!
B
21
S
9
G
8
Posts: 188
Reputation: 6,069

Post » Sun Jan 01, 2017 7:44 am

There is a rexrainbow plugin for system date and time where I think you can calculate how much time has passed or if it has passed 00:00 and then on loading the app it would decide whether the variable needs to be reset.
B
47
S
18
G
84
Posts: 2,273
Reputation: 49,800

Post » Sun Jan 01, 2017 10:34 am

You'd have to get a server where you store user data. This may also be possible in local storage as well, although I'm not sure.
Image
B
47
S
17
G
3
Posts: 206
Reputation: 5,061

Post » Mon Jan 02, 2017 11:08 pm

plinkie wrote:There is a rexrainbow plugin for system date and time where I think you can calculate how much time has passed or if it has passed 00:00 and then on loading the app it would decide whether the variable needs to be reset.


Would you mind linking me the plugin? :roll:
B
21
S
9
G
8
Posts: 188
Reputation: 6,069

Post » Tue Jan 03, 2017 12:10 am

Triforce wrote:

Would you mind linking me the plugin? :roll:



its called system date and time
B
78
S
23
G
69
Posts: 1,354
Reputation: 44,027


Return to How do I....?

Who is online

Users browsing this forum: blackhornet, DarthPapalo666 and 22 guests