Hello :)
Is it possible to set a different color on each particle?
I’ve tried this:
animationSet.addAnimation(new ParticleColorNode(ParticlePropertiesMode.LOCAL_STATIC, true, true));
// then in the initParticleFunc
prop[ParticleColorNode.COLOR_START_COLORTRANSFORM] = new ColorTransform(
0, 0, 0, 1,
Math.round(Math.random() * 0xff),
Math.round(Math.random() * 0xff),
Math.round(Math.random() * 0xff));
...but I get a “Register overflow!” error.
In fact, I don’t need the color to be animated, I just need each particle to have a different color.
Thanks for your help.