What? Posted December 8, 2014 Share Posted December 8, 2014 Please give me an example of the syntax I should use when using isFinished. Let's say my create function looks like this:attack = player.animations.add('attack');attack.play(12,false); Link to comment Share on other sites More sharing options...
What? Posted December 8, 2014 Author Share Posted December 8, 2014 I figured it out. This is what works:attack = player.animations.add('attack',[the frame numbers],12,false);player.animations.play('attack');console.log(attack.isFinished); Link to comment Share on other sites More sharing options...
Recommended Posts