I'm sure many of you have played those social network games where you gain energy every 3mins if the game is open or closed.
Is it possible to do something like that with a flash game? I know how to work INI's with the swf exporter but not how one would go about doing that sort of thing.
I'd probably log the time when the application ends (or perhaps every 3 minutes), and at the beginning of the game, find the time that has passed in minutes, divide it by 3, and multiply it by however many points you get every 3 minutes.
Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
11th March, 2011 at 05:30:49 -
You need to use a server time to check this. For example, get the time from the server when the player connects the first time they connect and subtract the time when they reconnect to give you the time they were disconnected for. Any other system is easily tampered with (such as the user changing their system clock).