The particle system cannot automatically turn itself off when it's not
needed, however it is easy enough to do so manually. This change does so
in SameGame as an example.
Task-number: QTBUG-22923
Change-Id: I5f2b3e572222f03c9412fd24c40276529e7d0e7e
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
State {
name: "DeathState"; when: dying == true
- StateChangeScript { script: particles.pulse(100); }
+ StateChangeScript { script: {particleSystem.paused = false; particles.pulse(100);} }
PropertyChanges { target: img; opacity: 0 }
StateChangeScript { script: block.destroy(1000); }
}
}
ParticleSystem{
id: particleSystem;
+ onEmptyChanged: if (empty) paused = true;
z:2
ImageParticle {
groups: ["red"]