Phaser API Documentation

  Version: 
getMix(animA, animB)

Description:

Returns the mix delay between two animations.

If no mix has been set-up, this method will return zero.

If you wish to create, or update, a new mix, call the addMix method. If you wish to remove a mix, call the removeMix method.

Parameters:

name type description
animA string | Phaser.Animations.Animation

The string-based key, or instance of, Animation A.

animB string | Phaser.Animations.Animation

The string-based key, or instance of, Animation B.

Returns:
Description:

The mix duration, or zero if no mix exists.

Type:
  • number
Since: 3.50.0