New pull request: emit a certain number of particles

Hey all,

Added a new pull request to jMonkeyEngine:

Right now, you can make particles spawn over a period of time, or spawn all particles. This new method allows you to spawn a specific number of available particles. This can be used to make “sputtering” particles or make a smaller effect without having to adjust the maximum number of particles or use another particle emitter.

  • Phr00t
1 Like

Instead of duplicating the code, it is better to modify emitAllParticles() so that it calls emitParticles(particles.length). That way, one method can be modified if anything needs to be changed, instead of two methods.

1 Like

Good suggestion. Done. Awaiting merge :slight_smile:

I merged it just now.