You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a ParticleEmitter is provided with color: [0xFF0000, 0x00FF00], the particles will correctly interpolate red->green.
However, if the ParticleEmitter's config is updated using updateConfig or setConfig, the color cycle repeats red->green->red->green. Each update adds another cycle length, which quickly turns into rapid flickering.
Click on the game multiple times to see the cycle count increase, causing a rapid flicker.
Additional Information
The updateConfig is empty in this example, but in my own project I need the function to adjust the particle angle. Adding color made me stumble across the issue. Depending on the cause of the problem, the same bug may affect other emitter properties.
Hi @Golen87. Thanks for submitting this issue. @samme has provided a PR to fix this and I've merged it with the master branch. It will be part of the next release. Do test it out and let us know if you encounter any issues.
Activity
[-]Particle emitter color[/-][+]Particle emitter color bug[/+]zekeatchan commentedon Mar 12, 2025
Hi @Golen87. Thanks for submitting this issue. @samme has provided a PR to fix this and I've merged it with the
masterbranch. It will be part of the next release. Do test it out and let us know if you encounter any issues.