Tracking time passed since last game session.

Asobu_GamesAsobu_Games PRO Posts: 261
edited March 2012 in Working with GS (Mac)
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!

Best Answer

  • jn2002dkjn2002dk Posts: 102
    Accepted Answer
    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 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?
    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

Answers

  • wormilwormil Member Posts: 127
    Yeah, I was playing tiny tower and I'd simply move the clock forwards and backwards to play :3
  • ChobbifaceChobbiface PRO Posts: 491
    How would you track when closing the game?
  • Asobu_GamesAsobu_Games PRO Posts: 261
    Haha yes I am aware of this practice (also from Tiny Tower) I have a friend who built a very tall tower in a very short amount of time this way. (She is super competitive) For this game in particular I don't think there would be any reason to cheat, as the stuff that happens over time is bad (like your character getting hungry etc) rather than a positive thing like earning money. Thanks for the heads up though!
  • EricTippettEricTippett Member Posts: 45
    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 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?
Sign In or Register to comment.