Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

pls help with onkilled event


nak3ddogs
 Share

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

 Share

  • Recently Browsing   0 members

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