The Scene Systems Update Event.
This event is dispatched by a Scene during the main game loop step.
The event flow for a single step of a Scene is as follows:
PRE_UPDATE
UPDATE
Scene.update
method is called, if it exists and the Scene is in a Running state, otherwise this is skipped.POST_UPDATE
PRE_RENDER
RENDER
Listen to it from a Scene using this.events.on('update', listener)
.
A Scene will only run its step if it is active.
name | type | description |
---|---|---|
time | number |
The current time. Either a High Resolution Timer value if it comes from Request Animation Frame, or Date.now if using SetTimeout. |
delta | number |
The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate. |