jcwhall Posted March 29, 2014 Share Posted March 29, 2014 Hi PandaJS, I'm trying to add an onComplete() function to a tween. This is what I have so far:var tween = new game.Tween(sprite) .to({x:100, y:100}, 1000) .easing(game.Tween.Easing.Back.Out);tween.start();Do you know how I add an onComplete function? Thanks a lot! Quote Link to comment Share on other sites More sharing options...
enpu Posted March 29, 2014 Share Posted March 29, 2014 Try this: tween.onComplete(function() { // Tween complete}); Quote Link to comment Share on other sites More sharing options...
jcwhall Posted March 29, 2014 Author Share Posted March 29, 2014 Thanks a lot, that works Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.