Phaser API Documentation

  Version: 

Member of: Phaser.Tweens.Tween

forward(ms)

Description:

Moves this Tween forward by the given amount of milliseconds.

It will only advance 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 advance this Tween by.

Returns:
Description:

This Tween instance.

Since: 3.60.0