Jump to content

pls help with onkilled event


Recommended Posts

coin.lifespan = 3000;coin.events.onKilled.add(function(coin){  coin.reset(coin.x,coin.y);  coin.animations.add('die',[8,9,10,11,12,13,14,15],10,false);  coin.animations.play('die').onComplete(    function(){      coin.destroy();    }  );},this)

i wanna destroy the coin after the die animation but i cant find the solution.

thx for any advice

Link to comment
Share on other sites


  • Recently Browsing   0 members

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