Overview
Excerpt |
---|
...
Invoke a |
...
function |
...
Unlike setTimer(), queue() does not repeat. It will make a single call to the named function at a later frame in the game.
The function, when called, will be run in the context of the global scope ("this" will be the global scope). So, if you've added properties or methods to the function, they won't be available from within the function when it's run as a result of being queued.
...
at some point in the future... |
...
...
The function must be defined on the global scope - it cannot be a method of an object or anything like that.
...
...
...
...
...
...
...
...