Jump to content

how to destroy particle Emitter ?


Lightnet
 Share

Recommended Posts

You must destroy the created particle manager. Not the emitters.

var particles = this.add.particles('spark');

var emitter = particles.createEmitter();

emitter.setPosition(400, 300);
emitter.setSpeed(200);
emitter.setBlendMode(Phaser.BlendModes.ADD);

this.time.delayedCall(3000, function() {
    particles.destroy();
});
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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