April 2018
Beginner
714 pages
18h 21m
English
You can control the amount of particles being emitted by setting the emitRate property of the emitter. Another property, called the lifeSpan, determines how many milliseconds it takes before a particle dies. To introduce some random behavior, you can use the lifeSpanVariation property to set a maximum amount of time (in milliseconds) the life span can be altered by the system (in both directions):
Emitter { anchors.fill: parent emitRate: 350 lifeSpan: 1500 lifeSpanVariation: 400 // effective: 1100-1900 ms}
A possible result of this change is shown in the following picture:

Read now
Unlock full access