Qt 5.6 Android can't change particle color in Emitter.onEmitParticles



  • HI all,
    I found problem with my Qml code

    onEmitParticles: {
                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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.