Scratch ProjectsJuaraKu
HomeLogin

Step 2 of 8

25%

Set the scene

You will set the scene. Choose your backdrop and add a dragonfly that follows the mouse-pointer around the Stage.
![Dragonfly in a desert background](images/set-the-scene.png "width:300px")

Open the Grow a dragonfly starter project. Scratch will open a blank project in a new browser tab.

Click Choose a Backdrop and add a backdrop of your choice. We used the Jurassic backdrop.

Backdrop icon on the Scratch app interface

The Stage showing the Jurassic backdrop.

Click Choose a Sprite and search for dragonfly, then add the Dragonfly sprite.

Sprite icon on the Scratch app interface

The search box with 'dragonfly' typed in and the Dragonfly sprite in the gallery.

Add a script to make the Dragonfly sprite follow the mouse-pointer (or your finger):

Dragonfly sprite icon on the Scratch app interface

when flag clicked
set size to [25] % // to start small
forever
point towards (mouse-pointer v)
move [5] steps
end

Test: Click the green flag and make the Dragonfly sprite move around the Stage. Is the dragonfly moving as you would expect?

The Dragonfly costume is not facing to the right, so the head of the Dragonfly sprite is not pointing towards the mouse-pointer.

Click on the Costumes tab and use the Select (arrow) tool to select the costume.

Use the Rotate tool at bottom of the selected costume to turn the Dragonfly costume to face the right.

An animated image showing how to rotate the dragonfly costume by dragging the rotation arrows so that the dragonfly faces right.

Test: Click the green flag and look at how the dragonfly moves now.

Dragonfly wings make a fluttering sound as they vibrate. You can edit a sound in Scratch to create your own sound.

Add the Crank sound to the Dragonfly sprite.

Test: Click the Play button so you can hear the sound.

The Crank sound is too long and too slow for dragonfly wings.

Select the end of the sound using your cursor or finger.

Click Copy to New to make a new sound with just the selected part:

The end of the crank sound selected in blue with the 'Copy to New' icon highlighted.

Rename your new sound from Crank2 to Wings. The rename sound property.

Test: Play the new sound. Click the Faster button a few times until you like the result:

A faster sound wave with the 'Faster' icon highlighted.

If you like, you can select the very end of the Wings sound, and then click Delete to remove it:

The end of the sound wave selected with the 'Delete' tool highlighted.

Now add a block to play the Wings sound when the dragonfly moves:

Dragonfly sprite icon

when flag clicked
set size to [25] %
forever
+start sound [Wings v]
point towards (mouse-pointer v)
move [5] steps
end

Test: Try out your dragonfly movement and sound effect.

Save your project