What is the maximum time you can set the timer for and have it work properly?
Lokitoes
Member, PRO Posts: 187
Hi all,
If I set a timer to say: 'after one hour, do this' will it actually work, or is that a bit too much for the timer to handle? (I thought I'd ask before taking the length of time it takes to test it!).
I'm making a piece that is going to be placed into a situation where it is running all day. After a while the piece starts to lag so I'm wanting to make an 'after one hour, reset game' timer to wipe the slate clean, but I'm worried that either it won't work at all, or after a few hours it will have troubles. Does anyone have any experience with setting a timer for such a long time?
I've had troubles with the timer being dodgy before (maybe in previous version of GS) so I guess I don't trust it that much.
Cheers!
Comments
I have a timer that runs over an hour (i.e. every 24 hours offer a reward), but this is based on the device time and not the timer behavior itself.
To my understanding, an "After 3600 seconds" or "Every 3600 seconds" behavior won't work unless the player plays the game for at least an hour without closing the app (highly unlikely), which would cause the rule to reset.
POLAR ROLLOUT (New Line-Drawing Physics Puzzler!) - FREE Download
You can actually type inf into the timer value (GS will replace it with a '∞' symbol) . . . and the timer will then take (literally) forever to complete . . . . which is completely useless . . .
The best answer is probably just to try it. I suspect it will work fine IF the app is not closed at all and the device doesn't go to sleep. You might be better off with using the device time and checking against it rather than with a Timer behavior.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
That rule is only useless if you're impatient
POLAR ROLLOUT (New Line-Drawing Physics Puzzler!) - FREE Download
Haha we could put infinite timers on EVERYTHING!!
After I wrote this initial post my computer died and wasn't worth fixing. hmm. But yes the app will not be closed - it will be in an art gallery and there will only be limited keyboard access in case a member of the public wants to be dodgy. So the idea is that it will stay open all day. I guess I'll just give it a try!