Warning | ||
---|---|---|
| ||
A common mistake is to assume that the setTimer() is the same as Javascript's setTimeout() function. While it serves a similar purpose, it's definitely not the same as the Javascript implementation. |
Overview
Excerpt |
---|
Allows you to trigger a function at some point in the future. |
One set, a timer will keep calling the specified function until you stop the timer using removeTimer().
Timers persist the save/load cycle. You can therefore look at Saved game files to see what timers were running at the time when the game was saved.
...
...
If you pass in a function, or the name of a function not on the global scope, the timer will break.
Avoid setting delays less than 100ms.
...
...
...
...
...
...
...
See also