nak3ddogs Posted September 13, 2014 Share Posted September 13, 2014 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 More sharing options...
Recommended Posts