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.
...
...
Avoid setting delays less than 100ms.
...
It's not clear what the return value will be, so ignore it.
...
...
...
...
...
...
...