Phaser API Documentation

  Version: 
getTweensOf(target, [includePending])

Description:

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.

Parameters:

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?

Returns:
Description:

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

Type:
Since: 3.0.0