Calls a function continously at the specified interval. See setTimeout to call function a single time.
the function to execute
Rest
...args: any[]the number of milliseconds (thousandths of a second) on how often to execute the function
Optional
pauseable: booleanrespects the pause state of the engine.
Rest
...args: any[]optional parameters which are passed through to the function specified by fn once the timer expires.
a numeric, non-zero value which identifies the timer created by the call to setInterval(), which can be used later with me.timer.clearInterval().
Calls a function once after a specified delay. See me.timer.setInterval to repeativly call a function.
the function you want to execute after delay milliseconds.
Rest
...args: any[]the number of milliseconds (thousandths of a second) that the function call should be delayed by.
Optional
pauseable: booleanrespects the pause state of the engine.
Rest
...args: any[]optional parameters which are passed through to the function specified by fn once the timer expires.
a positive integer value which identifies the timer created by the call to setTimeout(), which can be used later with me.timer.clearTimeout().
a Timer class to manage timing related function (FPS, Game Tick, Time...)
See
timer the default global timer instance