Phaser API Documentation

  Version: 
get(key)

Description:

Get an Animation instance that has been created locally on this Sprite.

See the create method for more details.

Parameters:

name type description
key string

The key of the Animation to retrieve.

Returns:
Description:

The Animation, or null if the key is invalid.

Since: 3.50.0