blob: 84e93d471eacc6b25334bddf42eff2eb6b445f84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
Item {
property bool explode : false
Particles {
id: particles
width: 38
height: 21
lifeSpan: 1000
lifeSpanDeviation: 0
source: "pics/star.png"
count: 0
angle: 270
angleDeviation: 360
velocity: 100
velocityDeviation: 20
z: 100
opacity: 0
streamIn: false
}
states: [ State { name: "exploding"; when: explode == true
SetProperties { target: particles; count: 200 }
SetProperties { target: particles; opacity: 1 }
SetProperties { target: particles; emitting: false } // i.e. emit only once
}
]
}
|