Jump to content

ParticleEmitter.js questions


md_lasalle
 Share

Recommended Posts

Hey guys, been playing around with Phaser 3 lately and I love it!

I've enhanced the particle editor example so that i can save/load and play with more of the emitter's properties. I've noticed that the maxParticles property is only taken in consideration if I put the emitter "on" to false, wait for all particles to die, and then set "on" to true again.

Looking at the source, I may have found a small bug (ParticleEmitter.js line 1705, Phaser version 3.13.0) :

    atLimit: function ()
    {
        return (this.maxParticles > 0 && this.getParticleCount() === this.maxParticles);
    }

the last test should probably be     this.getParticleCount() >== this.maxParticles   so that the emitter stops emitting until it gets below the new maxParticles value. Thoughts?

 

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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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