Phaser API Documentation

  Version: 
killTweensOf(target)

Description:

Stops all Tweens which affect the given target or array of targets.

The tweens will erase all references to any targets they hold and be stopped immediately.

If this method is called while the Tween Manager is running its update process, then the tweens will be removed at the start of the next frame. Outside of this, they are removed immediately.

Parameters:

name type description
target object | array

The target to kill the tweens of. Provide an array to use multiple targets.

Returns:
Description:

This Tween Manager instance.

Since: 3.0.0