Jump to content

Multiple emitters


winspeednl
 Share

Recommended Posts

Got it!

for (var e = 0; e < lavaGroup.children.length; e++) {    emitter = game.add.emitter(lavaGroup.children[e].x+tileSize/2, lavaGroup.children[e].y+tileSize/2, 1);    emitter.makeParticles('particle-fire');    emitter.gravity = 250;    emitter.minParticleSpeed.setTo(-25, -150);    emitter.maxParticleSpeed.setTo(25, -250);    emitter.setScale(0.5, 0.25, 0.5, 0.25, 6000, Phaser.Easing.Quintic.Out);    emitter.start(false, 8000, Math.random()*10000);}
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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