Raspberry_Pi_Education_Manual

Notes:

Changing the way the sprite looks

1  Click on your sprite to select it. In the Scripts area, click on the Costumes tab.

2  We are going to make a third costume for the cat, so click on Copy. A new cat costume should appear.

3  Select “costume3” and click on Edit. This will open the Paint Editor. Experiment with all the buttons and tools to find out what they do.

4  Once you feel at home, draw some clothes on the costume

5  Next, select the Scripts tab, click on the Looks button and select the “switch to costume [ ]” block.

6  Drag it under the Scripts tab and use the drop-down menu to select “costume3”. Double-click on this block and the cat will change his costume.

and click on OK. I gave my sprite a toga to make it look like a Roman Emperor.

Now you have two blocks under the Scripts tab, one to say “Hello, World” and one for switching the costume. You can put them together by moving one so that it is just above or below the other. If a white line appears, the two blocks will snap together. Two or more blocks stuck together make a “script”.

Over to you

Question: Now that we have a script with two blocks, what happens when you double-click it? Task: See if you can arrange three blocks to make the cat change to his toga costume, say “Hello, World”, then change back to its normal costume.

That cat’s right: he looks like he’s lost in a snow storm. We need to give him a stage on which to perform.

A beginner’s guide to Scratch

12

Made with FlippingBook flipbook maker