Jump to content

Emitter explosion happens only the first time


marcelek
 Share

Recommended Posts

Hi guys! 

I'm trying to get an emitter to explode with particles when player collides with an ammo crate in my game, and it does work, but only the first time.

I put the emitter into my game like this:

	ammoEmiter = game.add.emitter(200, 200, 40);
    ammoEmiter.makeParticles('ammoParticle');
    ammoEmiter.lifespan = 500;
    ammoEmiter.minParticleSpeed = new Phaser.Point(-400, -400);

And then I explode it using:

	ammoEmiter.explode();

Any ideas what the problem could be?

PS. I'm really loving Phaser, and this forum, too! I just started with making games and I've found answers to so many Phaser questions here, awesome! Cheers!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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