From c48ea83a0da33f702f738707b6a10efcdda75641 Mon Sep 17 00:00:00 2001 From: Oliver Wolff Date: Thu, 13 Dec 2012 16:19:46 +0100 Subject: Fixed samegame tutorial part 4 to reflect Quick2 state Change-Id: I61a3d63bc0268256ff6497339a6d97719a59860f Reviewed-by: Jerome Pasion Reviewed-by: Christian Stenger --- src/quick/doc/src/advtutorial.qdoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/quick/doc/src') diff --git a/src/quick/doc/src/advtutorial.qdoc b/src/quick/doc/src/advtutorial.qdoc index d4468d1a6f..dbd13fff07 100644 --- a/src/quick/doc/src/advtutorial.qdoc +++ b/src/quick/doc/src/advtutorial.qdoc @@ -364,12 +364,12 @@ To fade out, we set \c dying to true instead of setting opacity to 0 when a bloc \section3 Adding particle effects -Finally, we'll add a cool-looking particle effect to the blocks when they are destroyed. To do this, we first add a \l Particles element in +Finally, we'll add a cool-looking particle effect to the blocks when they are destroyed. To do this, we first add a \l ParticleSystem in \c BoomBlock.qml, like so: \snippet tutorials/samegame/samegame4/content/BoomBlock.qml 3 -To fully understand this you should read the \l Particles documentation, but it's important to note that \c emissionRate is set +To fully understand this you should read the \l Particles documentation, but it's important to note that \c emitRate is set to zero so that particles are not emitted normally. Also, we extend the \c dying State, which creates a burst of particles by calling the \c burst() method on the particles element. The code for the states now look like this: -- cgit v1.2.3