System Time Help

dropoutdropout Member Posts: 19
edited August 2012 in Working with GS (Mac)
Hey i am looking for some help in getting my game to work correctly. Im making a virtual pet type game and from templates I've worked out how to get it to run off the system time while playing the game . But i need some more help

So ill explain what I'm trying to achieve. The game will save the system time to an attribute regularly . so that when the game is reopened it checks the time last saved and compares it with current time to work out how long its been.
So for example if every hour the health bar gets -10 points. Then if the game was closed for 3 hours and then reopened it can work out that it has been 3 hours which will be -30 points for health..
Has anyone got this to work before? any help is appretiated
Thankyou

Comments

Sign In or Register to comment.