Chapter 4 Programming with Scratch^59
THE OFFICIAL RASPBERRY PI BEGINNER’S GUIDE
5 Figure 4-4: To delete a block, simply drag it out of the scripts area
Click on the Motion category in the blocks palette, then click and drag the move 10 steps
block so it locks into place under the trigger block on the scripts area. As the name suggests,
this tells your sprite – the cat – to move a number of steps in the direction it’s currently facing.
when clicked
move^10 steps
Add more instructions to your program to create a sequence. Click on the Sound palette,
colour-coded pink, then click and drag the play sound meow until done block so it locks
underneath the move 10 steps block. Keep going: click back on the Motion category and drag
another move 10 steps block underneath your Sound block, but this time click on the ‘10’ to
select it and type ‘-10’ to create a move -10 steps block.
when clicked
move^10 steps
play sound meow untildone
move -10 steps