Tween#stop()

stop(complete) → {Phaser.Tween}

Stops the tween if running and flags it for deletion from the TweenManager.
If called directly the Tween.onComplete signal is not dispatched and no chained tweens are started unless the complete parameter is set to true.
If you just wish to pause a tween then use Tween.pause instead.

Parameters
Name Type Argument Default Description
complete boolean <optional>
false

Set to true to dispatch the Tween.onComplete signal.

Returns

This tween. Useful for method chaining.

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

Please login to continue.