Phaser API Documentation

  Version: 
preUpdate(time, delta)

Description:

Updates the elapsed time counter, if this Timeline is not paused.

Parameters:

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.

Since: 3.60.0
Source: src/time/Timeline.js (Line 199)