rodrigezer Posted November 14, 2013 Share Posted November 14, 2013 Hi i have this code personaje=game.add.sprite(x,y,'hero') personaje.animations.add('run') personaje.animations.play('run', 12, false,{HERE THE CALL BACK WHEN ENDS});How can i call a callback when de sprites ends ?Ty Link to comment Share on other sites More sharing options...
rich Posted November 15, 2013 Share Posted November 15, 2013 personaje.events.onAnimationComplete.add(runOver, this); Link to comment Share on other sites More sharing options...
Mike Posted November 15, 2013 Share Posted November 15, 2013 Here a link to a similar topic I posted earlier: http://www.html5gamedevs.com/topic/1977-get-the-animation-instance-from-animationmanager/ Link to comment Share on other sites More sharing options...
Recommended Posts