Timer#next

[readonly] next : number The time at which the next event will occur. Source code: time/Timer.js (Line 664)

Timer#ms

[readonly] ms : number The duration in milliseconds that this Timer has been running for. Source code: time/Timer.js (Line 712)

Timer#loop()

loop(delay, callback, callbackContext, arguments) → {Phaser.TimerEvent} Adds a new looped Event to this Timer that will repeat forever or until the Timer is stopped. The event will fire after the given amount of delay in milliseconds has passed, once the Timer has started running.The delay is in relation to when the Timer starts, not the time it was added. If the Timer is already running the delay will be calculated based on the timers current time. Make sure to call start after adding all of

Timer#length

[readonly] length : number The number of pending events in the queue. Source code: time/Timer.js (Line 699)

Timer#expired

[readonly] expired : boolean An expired Timer is one in which all of its events have been dispatched and none are pending. Source code: time/Timer.js (Line 52)

Timer#events

events : Array.<Phaser.TimerEvent> An array holding all of this timers Phaser.TimerEvent objects. Use the methods add, repeat and loop to populate it. Type Array.<Phaser.TimerEvent> Source code: time/Timer.js (Line 63)

Timer#duration

[readonly] duration : number The duration in ms remaining until the next event will occur. Source code: time/Timer.js (Line 677)

Timer#destroy()

destroy() Destroys this Timer. Any pending Events are not dispatched.The onComplete callbacks won't be called. Source code: time/Timer.js (Line 646)

Timer#autoDestroy

autoDestroy : boolean If true, the timer will automatically destroy itself after all the events have been dispatched (assuming no looping events). Source code: time/Timer.js (Line 45)

Timer#add()

add(delay, callback, callbackContext, arguments) → {Phaser.TimerEvent} Adds a new Event to this Timer. The event will fire after the given amount of delay in milliseconds has passed, once the Timer has started running.The delay is in relation to when the Timer starts, not the time it was added. If the Timer is already running the delay will be calculated based on the timers current time. Make sure to call start after adding all of the Events you require for this Timer. Parameters Name Type A