TimerEvent
Class: Phaser.TimerEvent
Constructor
new TimerEvent(timer, delay, tick, repeatCount, loop, callback, callbackContext, arguments)
A TimerEvent is a single event that is processed by a Phaser.Timer.
It consists of a delay, which is a value in milliseconds after which the event will fire.
When the event fires it calls a specific callback with the specified arguments.
TimerEvents are removed by their parent timer once finished firing or repeating.
Use Phaser.Timer#add, Phaser.Timer#repeat, or Phaser.Timer#loop methods to create a new event.
Parameters
Name | Type | Description |
---|---|---|
登录查看完整内容
|