Phaser API Documentation

  Version: 

Member of: Phaser.Tweens.Tween

rewind(ms)

Description:

Moves this Tween backward by the given amount of milliseconds.

It will only rewind through the current loop of the Tween. For example, if the Tween is set to repeat or yoyo, it can only fast forward through a single section of the sequence. Use Tween.seek for more complex playhead control.

If the Tween is paused or has already finished, calling this will have no effect.

Parameters:

name type description
ms number

The number of milliseconds to rewind this Tween by.

Returns:
Description:

This Tween instance.

Since: 3.60.0