Phaser API Documentation

  Version: 
chain(tweens)

Description:

Create a sequence of Tweens, chained to one-another, and add them to this Tween Manager.

The tweens are played in order, from start to finish. You can optionally set the chain to repeat as many times as you like. Once the chain has finished playing, or repeating if set, all tweens in the chain will be destroyed automatically. To override this, set the 'persists' argument to 'true'.

Playback will start immediately unless the first Tween has been configured to be paused.

Please note that Tweens will not manipulate any target property that begins with an underscore.

Parameters:

name type description
tweens object | Phaser.Types.Tweens.TweenChainBuilderConfig

A Tween Chain configuration object.

Returns:
Description:

The Tween Chain instance.

Since: 3.60.0