Phaser API Documentation


Member of: Phaser.Scene

update(time, delta)


This method should be overridden by your own Scenes.

This method is called once per game step while the scene is running.


name type description
time number

The current time. Either a High Resolution Timer value if it comes from Request Animation Frame, or 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.

Since: 3.0.0
Source: src/scene/Scene.js (Line 307)