Phaser API Documentation

  Version: 
exists(key)

Description:

Checks to see if the given key is already used locally within the animations stored on this Sprite.

Parameters:

name type description
key string

The key of the Animation to check.

Returns:
Description:

true if the Animation exists locally, or false if the key is available, or there are no local animations.

Type:
  • boolean
Since: 3.50.0