Module 5 Solutions
Module 5 Solutions
Easy Exercises
Bug Script
12 | Scratch Workbook
Random Drum
Use the pick random command. The most efficient way
of playing 5 random beats is using a repeat loop rather
than 5 separate “play drum” commands.
Draw a Triangle
The most effective way of drawing a triangle is by using a
repeat loop to draw and rotate 3 times instead of 3 separate
draw and 3 rotate commands. Don’t forget to put the pen
down to start drawing!
Difficult Exercises
Build a House
You will need to use 2 repeat loops for the triangle and square parts of the house. Make sure your
sprite is pointing in the right direction and that you position the sprite correctly inside the house.
Spooky Surprise
Create costume 2 by copying and editing costume 1 in the
paint editor. Use a forever loop to repeat the switch between
costume 1 and costume 2 continuously. A wait command can
be used to decrease the speed of the animation.
Solutions | 13
Extraordinary Whirl
The set whirl effect should be placed in a forever loop. The forever loop allows the
whirl effect to change continuously as the x position of the mouse changes. The
“mouse x” command is found in the sensing block.
Scribbling Dog
Use the pen down command to allow the sprite to scribble on the stage. Set the pen
to any size or colour. Use the “point towards mouse-pointer” inside a forever loop to
follow the mouse. Move the sprite to leave a trail.
14 | Scratch Workbook
Extreme Exercises
Keeping Track
To make the variables for x position and y position appear on the stage, click the
check box next to the block as shown here.
5,4,3,2,1
Draw a rocket or just use a picture of a plane from the Scratch
image library. Create a variable called Timer and set it to 5. Use
a ‘repeat until’ loop. When Timer = 0, broadcast ‘blast off ’ to the
rocket sprite.
Solutions | 15
Bigger and Bigger
Make the sprite shrink to zero. Create a variable named size. Use a repeat until loop to make the
sprite grow to until it reaches full size (100%) again.
Shape Sensation
Use variables to store sides and angle. Start with a triangle. Use a ‘repeat until’ loop to stop when
sides = 9. Use ‘wait’ to slow things down.
16 | Scratch Workbook