Jump to content

Problem changing the sprite to a makeParticles() emitter


Recommended Posts

Hi there,

I´m having a problem with an emitter, I´m trying to change the particles sprite and it seem´s it´s no working... I have a normal code for the emitter

        this.emitter= this.game.add.emitter(this.hero.x, this.hero.y, 400);        this.emitter.makeParticles('sprite1');        this.emitter.minParticleSpeed.setTo(0,200);        this.emitter.maxParticleSpeed.setTo(0, 200);        this.emitter.gravity = 500;        this.emitter.minRotation = 0;        this.emitter.maxRotation = 0;        this.emitter.minParticleScale = 3;        this.emitter.maxParticleScale = 3;         this.emitter.start(false, 4000, 20);

And I was trying to change the particles this way, I also tried stopping, changing and starting again but it´s not working. How should I do that? I guess it´s possible with the same emitter.



Link to comment
Share on other sites


  • Recently Browsing   0 members

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