Phaser API Documentation

  Version: 

Member of: Phaser.Game

getFrame()

Description:

Returns the current game frame.

When the game starts running, the frame is incremented every time Request Animation Frame, or Set Timeout, fires.

Returns:
Description:

The current game frame.

Type:
  • number
Since: 3.16.0
Source: src/core/Game.js (Line 610)