Phaser API Documentation

  Version: 
hasTarget(target)

Description:

Checks if any of the Tweens in this Timeline as operating on the target object.

Returns false if no Tweens operate on the target object.

Parameters:

name type description
target object

The target to check all Tweens against.

Returns:
Description:

true if there is at least a single Tween that operates on the target object, otherwise false.

Type:
  • boolean
Examples:
Since: 3.0.0
Source: src/tweens/Timeline.js (Line 855)