- Home /
Question by
JoshOClock · Mar 03, 2011 at 07:45 PM ·
timesystem
What's the best way to calculate time passed since last playing app?
Basically to do a Farmville crop growing over time type system.
I would guess save the system time in a PlayerPref on minimize and then check it when you run next?
Any other suggestions or can anyone point me at the functions to do that?
Comment
Best Answer
Answer by efge · Mar 03, 2011 at 07:50 PM
PlayerPrefs are only stored on the players computer. Is would be better to store information at a server.
Take a look at the wiki: Server Side Highscores
Good starting point with SQL, PHP and JS code.
Your answer
Follow this Question
Related Questions
Covnert system time into variables 3 Answers
How do I pull the current time from a website? 1 Answer
See if a time span is bigger than X 4 Answers
How can I have timespan display less 2 Answers