juhojo / corejumper

Platformer game
MIT License
2 stars 0 forks source link

Canceling TweenLite animations #4

Closed juhojo closed 7 years ago

juhojo commented 7 years ago

Currently the animation cancellation does not work as intended related to: http://stackoverflow.com/questions/25360420/how-to-stop-tweenmax-animation-while-animating.

There is documentation about animation cancelling methods but currently binding the tween to a variable and calling one of these methods on the variable does not work as intended. See the documentation to resolve this issue.

juhojo commented 7 years ago

With TweenMax you can use the .kill() method but with TweenLite the method for cancelling animations is TweenLite.killTweensOf(yourTween), yourTween being a tween object.