Tracking time passed since last game session.
Hi guys!
I am looking to use the system clock feature to track how much time has passed since the users last game session. For example a tamagotchi style game where you want certain character stats (such as hunger level) to go down over time regardless even when the player has closed the game.
I am thinking the best way is to save the time & date when closing the game (as well as a regular auto-save function) and then load that time each new game session and compare to the current clock time. This could be a bit of a challenge though. Has anyone else done anything like this before? I'd love to hear your solutions!
![:) :)](http://forums.gamesalad.com/plugins/emojiextender/emoji/twitter/smile.png)
I am thinking the best way is to save the time & date when closing the game (as well as a regular auto-save function) and then load that time each new game session and compare to the current clock time. This could be a bit of a challenge though. Has anyone else done anything like this before? I'd love to hear your solutions!
Best Answer
-
jn2002dk Posts: 102
Is there any way to not allow the player to cheat by messing with the clock? Is there another method to get time passed?
I don't think there is a way to prevent it in GS but i assume they use server time instead of device time in games like Farmville
I was going to make a game soon that needed this feature but I wouldnt want them to cheat.
Are you able to cheat like this in Dragonvale, Farmville and all those popular games?
Answers
I was going to make a game soon that needed this feature but I wouldnt want them to cheat.
Are you able to cheat like this in Dragonvale, Farmville and all those popular games?