Phaser API Documentation

getTweensOf(target, [includePending])


Returns an array of all Tweens or Timelines in the Tween Manager which affect the given target or array of targets.

Only the currently active tweens are tested. A tween that has completed and is awaiting removal will not be included in the results.

If you wish to also search pending tweens, use the includePending flag.


name type arguments Default description
target object | array

The target to look for. Provide an array to look for multiple targets.

includePending boolean <optional> false

Also check for pending tweens, not just active ones?


A new array containing all Tweens and Timelines which affect the given target(s).

Since: 3.0.0