Phaser API Documentation

  Version: 
addMultiple(configs)

Description:

Create multiple Tweens and add them all to this Tween Manager, by passing an array of Tween Configuration objects.

See the TweenBuilderConfig for all of the options you have available.

Playback will start immediately unless the tweens have been configured to be paused.

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

Tweens are designed to be 'fire-and-forget'. They automatically destroy themselves once playback is complete, to free-up memory and resources. If you wish to keep a tween after playback, i.e. to play it again at a later time, then you should set the persist property to true in the config. However, doing so means it's entirely up to you to destroy the tween when you're finished with it, otherwise it will linger in memory forever.

If you wish to chain Tweens together for sequential playback, see the TweenManager.chain method.

Parameters:

name type description
configs Array.<object> | Array.<Phaser.Types.Tweens.TweenBuilderConfig>

An array of Tween Configuration objects.

Returns:
Description:

An array of created Tweens.

Type:
Since: 3.60.0