Phaser API Documentation

  Version: 
getTotalFrames()

Description:

Returns the total number of frames in this animation, or returns zero if no animation has been loaded.

Returns:
Description:

The total number of frames in the current animation, or zero if no animation has been loaded.

Type:
  • number
Since: 3.4.0