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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

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