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

 Share

  • Recently Browsing   0 members

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