After creating a ParticleEmitter, subsequent changes to the emitter's speedX and speedY properties are not taken into account. Below is a minimal example demonstrating this issue. When the emitter is triggered on a pointer down event, the speed is supposed to be set to zero, but the particles still maintain their initial speed.
When the emitter is triggered by the pointer down event, the particle speed should be updated to the new values set (speedX and speedY to 0), resulting in particles emitting with no horizontal or vertical speed.
Actual Behavior:
Despite setting speedX and speedY to 0, the particles still emit with their initial speed values.
In the example you emit the particles and then set the emitter speed to zero. Speed is an onEmit property, not an onUpdate one, so the particles already launched will not be modified by changing the speed.
Version
After creating a
ParticleEmitter
, subsequent changes to the emitter'sspeedX
andspeedY
properties are not taken into account. Below is a minimal example demonstrating this issue. When the emitter is triggered on a pointer down event, the speed is supposed to be set to zero, but the particles still maintain their initial speed.Example Test Code
To be pasted in this example:
Expected Behavior:
When the emitter is triggered by the pointer down event, the particle speed should be updated to the new values set (speedX and speedY to 0), resulting in particles emitting with no horizontal or vertical speed.
Actual Behavior:
Despite setting speedX and speedY to 0, the particles still emit with their initial speed values.