Ofline runtime

Chat about anything not covered in these forums, but keep it civil!

Post » Fri Mar 13, 2015 1:40 pm

Hi Dear;

I wanna develop a complicate game. when you close your game, time must be continue and game should continue to do duty.how can I do it?
B
4
Posts: 6
Reputation: 220

Post » Fri Mar 13, 2015 1:58 pm

You'd probably have to save the date and time when the game is closed then when its opened again compare how much time has elapsed and compensate the game play mechanics accordingly.

Example, you get 1 gold coin every hour. You close the game and reopen it 3 hours later. The game compares the times and calculates that 3 hour have passed so gives you 3 gold coins.

I'm not sure how secure it would be against cheating though.

Other than that maybe make it online and have a server keep track of things. I don'd have knowledge of that stuff though, and you say offline anyway.
B
38
S
20
G
19
Posts: 631
Reputation: 10,916

Post » Fri Mar 13, 2015 3:01 pm

thank you sir
B
4
Posts: 6
Reputation: 220


Return to Open Topic

Who is online

Users browsing this forum: Uchiha ahmed and 0 guests