Jump to content

How to use the onAnimationComplete


Recommended Posts

  • 3 weeks later...


You mean something like this?

sprite.events.onAnimationComplete.add( yourFunction, yourContext); 



why doesn't work it?

	    player.animations.add('run')	    player.animations.play('run', 12, false, true);	    player.animations.onAnimationComplete.add(function(){			console.log("complete")		}, this);
Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...