Phaser API Documentation

  Version: 
Event: TWEEN_PAUSE
Phaser.Tweens.Events.TWEEN_PAUSE
TWEEN_PAUSE

Description:

The Tween Pause Event.

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

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

var tween = this.tweens.add({
    targets: image,
    ease: 'Power1',
    duration: 3000,
    x: 600
});
tween.on('pause', listener);
// At some point later ...
tween.pause();

Parameters:

name type description
tween Phaser.Tweens.Tween

A reference to the Tween instance that emitted the event.

Since: 3.60.0