aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/declarative/samegame/SamegameCore/BoomBlock.qml2
-rw-r--r--examples/declarative/samegame/SamegameCore/GameArea.qml1
2 files changed, 2 insertions, 1 deletions
diff --git a/examples/declarative/samegame/SamegameCore/BoomBlock.qml b/examples/declarative/samegame/SamegameCore/BoomBlock.qml
index e5d4f4090b..1ea5c47b82 100644
--- a/examples/declarative/samegame/SamegameCore/BoomBlock.qml
+++ b/examples/declarative/samegame/SamegameCore/BoomBlock.qml
@@ -104,7 +104,7 @@ Item {
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); }
}
diff --git a/examples/declarative/samegame/SamegameCore/GameArea.qml b/examples/declarative/samegame/SamegameCore/GameArea.qml
index 9a8f68ad89..5628ee00b4 100644
--- a/examples/declarative/samegame/SamegameCore/GameArea.qml
+++ b/examples/declarative/samegame/SamegameCore/GameArea.qml
@@ -63,6 +63,7 @@ Item {
}
ParticleSystem{
id: particleSystem;
+ onEmptyChanged: if (empty) paused = true;
z:2
ImageParticle {
groups: ["red"]