casarock Posted January 27, 2015 Share Posted January 27, 2015 Hi, I've seen that there is an onDestroy signal for Particles. I just tried some things, but I do not understand how to bind on a Phaser.signal? Anybody here who could give me an hint? I want to fire a callback function when a emitter ist "done". Is this possible? Link to comment Share on other sites More sharing options...
redsheep Posted January 28, 2015 Share Posted January 28, 2015 I think you need to check the living particles count manually. (try using countliving method of emitter)Emitter is extend from Group and in fact not destroy or kill after explose finished.(you can bind a callback with Phaser.signal using "add" method, like sprite.onDestroy.add(callback,this) ) Link to comment Share on other sites More sharing options...
casarock Posted January 28, 2015 Author Share Posted January 28, 2015 Hi, I've rewritten the whole thing and I don't use emitters anymore, now I can controll everything I need to control Link to comment Share on other sites More sharing options...
Recommended Posts