Phaser API Documentation

  Version: 
completeAfterLoop([loops])

Description:

Flags the Tween as being complete only once the current loop has finished.

This is a useful way to stop an infinitely looping tween once a complete cycle is over, rather than abruptly.

If you don't have a loop then call Tween.stop instead.

Parameters:

name type arguments description
loops number <optional>

The number of loops that should finish before this tween completes. Zero means complete just the current loop.

Returns:
Description:

This Tween instance.

Since: 3.60.0