Offline System??

Discussion and feedback on Construct 2

Post » Mon Jul 14, 2014 10:22 pm

Will We all know we can subtract from arrays & global variables etc.. for every X sec if the player is playing the game. but can we do it offline, when he is not playing? Like games that gives you another live after 5 min ?? :roll: just wondering
ImageImageImageImageImage
B
57
S
16
G
5
Posts: 852
Reputation: 11,536

Post » Mon Jul 14, 2014 10:57 pm

Maybe you could save the time when player quits and then when game is restarted compare the time.
B
34
S
9
G
3
Posts: 517
Reputation: 5,276

Post » Tue Jul 15, 2014 11:35 am

Katala wrote:Maybe you could save the time when player quits and then when game is restarted compare the time.


What if the game crashes or the player presses the home button?

Rather you could save the time when a certain event started, for instance when the player started building a building and in case of a crash or the game being closed on start you could compare the current time and the time the event started.
This obviously could be manipulated by the player by changing the devices time and date settings.
B
33
S
12
G
7
Posts: 227
Reputation: 7,582

Post » Tue Jul 15, 2014 11:51 am

@KFC , Well it could save that value every tick for example. And if it's possible to check the time from some reliable source from the internet.

But I don't really have experience on this kind of game desing so I don't really know how they usually do this.
B
34
S
9
G
3
Posts: 517
Reputation: 5,276

Post » Tue Jul 15, 2014 1:29 pm

I was kinda confused by the title. Optimally you would check with a server the exact time and date.
As for saving each tick it seems unnecessary as you only need the start time and the current time to be able to setup a correct timer internally or to present one to the player.
B
33
S
12
G
7
Posts: 227
Reputation: 7,582


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 3 guests