System Time Help
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
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