The_Official_Raspberry_Pi_-_Beginner’s_Book_Vol1,_2018 (1)

(singke) #1
Chapter 4 Programming with Scratch^77

THE OFFICIAL RASPBERRY PI BEGINNER’S GUIDE


Create a new project and save it as ‘Synchronised Swimming’. Click on the Stage in the stage
control section, then click the Backdrops tab. Click on a water-like blue colour from the palette,
click on the fill with colour icon and click on the white backdrop (Figure 4-15).

5 Figure 4-15: Fill the background with a blue colour

Right-click the cat sprite and click ‘delete’. In the sprite area, click the ‘choose sprite from
library’ icon to see a list of built-in sprites. Click on the Animals category, then ‘Cat1 Flying’
(Figure 4-16), then OK. This sprite also serves well for swimming projects.

Click the new sprite, then drag
two when space key pressed
Events blocks into the scripts
area. Click on the small
down-arrow next to the word
‘space’ on the first block
and choose ‘left arrow’ from
the list of possible options.
Drag a turn  15 degrees
Motion block under your
when left arrow pressed block,
5 Figure 4-16: Choose a sprite from the library then do the same with your

Free download pdf