Phaser API Documentation

  Version: 
Event: TWEEN_STOP
Phaser.Tweens.Events.TWEEN_STOP
TWEEN_STOP

Description:

The Tween Stop Event.

This event is dispatched by a Tween when it is stopped.

Listen to it from a Tween instance using Tween.on('stop', listener), i.e.:

var tween = this.tweens.add({
    targets: image,
    x: 500,
    ease: 'Power1',
    duration: 3000
});
tween.on('stop', listener);

Parameters:

name type description
tween Phaser.Tweens.Tween

A reference to the Tween instance that emitted the event.

targets any | Array.<any>

The targets of the Tween. If this Tween has multiple targets this will be an array of the targets.

Since: 3.24.0