Tween#start()

start(index) → {Phaser.Tween}

Starts the tween running. Can also be called by the autoStart parameter of Tween.to or Tween.from.
This sets the Tween.isRunning property to true and dispatches a Tween.onStart signal.
If the Tween has a delay set then nothing will start tweening until the delay has expired.

Parameters
Name Type Argument Default Description
index number <optional>
0

If this Tween contains child tweens you can specify which one to start from. The default is zero, i.e. the first tween created.

Returns

This tween. Useful for method chaining.

Source code: tween/Tween.js (Line 284)
doc_phaser
2017-02-14 11:18:41
Comments
Leave a Comment

Please login to continue.