Solved Qt 5.6 Android can't change particle color in Emitter.onEmitParticles
-
HI all,
I found problem with my Qml codeonEmitParticles: { for (var i=0; i<particles.length; i++) { var particle = particles[i]; particle.x = var_x; // work properly on both Android and Desctop particle.y = var_y; // too particle.red = var_r; // this line and all lines below particle.green = var_g; // do not work on Android (( particle.blue = var_b; particle.startSize = var_ss; particle.endSize = var_es; } }
maybe someone have any ideas?
thanks for help and good luck -
use few ImageParticle with different colors, you stupid bastard ;)
-
Hi, I already replied to your other post in the game development forum (https://forum.qt.io/topic/73472/qml-particles-any-tutorial).
You can have a look at V-Play Engine which offers easier usage of QML Particles with the ParticleVPlay type. There's also a ParticleEditor that makes custom particle creation easier.Best,
Günther -
particle.red = var_r; // must be a float value 0..1 particle.green = var_g; // must be a float value 0..1 particle.blue = var_b; // must be a float value 0..1