diff options
Diffstat (limited to 'demos/declarative/samegame/content/BoomBlock.qml')
-rw-r--r-- | demos/declarative/samegame/content/BoomBlock.qml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/demos/declarative/samegame/content/BoomBlock.qml b/demos/declarative/samegame/content/BoomBlock.qml index 0d05772..5e5cf18 100644 --- a/demos/declarative/samegame/content/BoomBlock.qml +++ b/demos/declarative/samegame/content/BoomBlock.qml @@ -1,11 +1,11 @@ Item { id:block property bool dying: false - property bool spawning: false + property bool spawned: false property int type: 0 property int targetX: 0 property int targetY: 0 - x: Follow { source: targetX; spring: 1.2; damping: 0.1 } + x: Follow { enabled: spawned; source: targetX; spring: 1.2; damping: 0.1 } y: Follow { source: targetY; spring: 1.2; damping: 0.1 } Image { id: img @@ -38,7 +38,7 @@ Item { id:block } states: [ - State{ name: "AliveState"; when: spawning == true && dying == false + State{ name: "AliveState"; when: spawned == true && dying == false SetProperties { target: img; opacity: 1 } }, State{ name: "DeathState"; when: dying == true |