md_lasalle Posted September 28, 2018 Share Posted September 28, 2018 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 More sharing options...
samme Posted September 28, 2018 Share Posted September 28, 2018 Yes, that's probably worth changing. Link to comment Share on other sites More sharing options...
Recommended Posts