Scratch Silver III
Scratch Silver II
SCRATCH SILVER I
SCRATCH GOLD III
1 of 3

6.04 Build and Test

Now, it’s time to build your book. Start small, and add more to your project if you have time.

Multiple pages of a book project.

Tip: Remember to test your project each time you add something. It is much easier to find and fix bugs before you make more changes.

For each page 📃

Add the backdrop and new sprites you need for this page.

Choose a sprite and choose a backdrop icons.

You will need to add code to set the positions and visibility of sprites on the first title page and each page after that.

When you are creating a book, animation, presentation, or game with levels, some sprites should only show on some backdrops.

Show and hide sprites on different backdropsSee inside
Click on the Stage or press the Space key to switch to the next backdrop.


There are two ways to position your sprites into layers.

You can drag a sprite on the Stage to move it to the front layer:

Dragging a sprite on the Stage to move it to the front, then dragging another sprite on the Stage to move it to the front.

For each sprite 🐈 🐢 🎈

You will need to add code to each character and object sprite in your book. Consider whether they will do anything when the project starts, when the backdrop switches to a particular page or when the sprite is clicked.

Abby thinks “Hmm”See inside

Hedgehog walkingSee inside

Rooster effectsSee inside

Turning the page 📖

You will need a way for your reader to move to the next page in your book.

You can use backdrops in a Scratch project to create different pages or levels.

Changing backdrop tutorialSee inside

Click on the Stage pane and then the Backdrops tab to view the backdrops for your project. You can drag the backdrops to reorder them.

The backdrops in order in the Backdrops tab.

Edit costumes 🦁 and backdrops 🖼️

You may want to edit or add costumes or backdrops in the Paint editor.

The Costumes and Backdrops tabs.
The paint costume and backdrop icons.

Go to the Choose a Backdrop menu and click on Paint:

The 'Paint' option in the 'Choose a Backdrop' menu.

You will be taken to the Paint editor, where the new backdrop will be highlighted in the list. If you have other backdrops in your project, you will also see them in the list.

The new backdrop open in the Paint editor and highlighted in the list.

To set the main colour of the backdrop, click on the Rectangle tool, then use the Fill colour chooser to select a colour, then drag the shape over the full backdrop canvas:

The Fill colour chooser menu with 'Color', 'Saturation', and 'Brightness' sliders.
A light-blue rectangle drawn larger than the canvas to create an entirely light-blue backdrop.

If you want to add more details to your backdrop, you can use the Rectangle tool, Circle tool, or Brush tool, or a combination of all three!

The backdrop canvas with the light-blue rectangle, and in front of it, a smaller green circle representing a hill.

When you have finished, make sure that you give your new backdrop a name that makes sense:

The backdrop name box with the word 'Hill' typed in.

Your new backdrop will be shown on the Stage and will be available to use in Looks blocks.

The new Hill backdrop and the Scratch Cat sprite on the Stage.

You can create backdrops and costumes for sprites in the Paint editor, using just shapes.

Go to the Choose a Sprite or Choose a Backdrop menu and choose the Paint option:

The 'Paint' option in the 'Choose a Sprite' menu.
The 'Paint' option in the 'Choose a Backdrop' menu.

Select which tool(s) to use to make the shape(s) that you want:

  • Circle: Click on the Circle tool to draw a circle. Press and hold the Shift key on your keyboard to draw a perfect circle.
The Circle tool.
  • Rectangle: Click on the Rectangle tool to draw a rectangle. Press and hold the Shift key to draw a square.
The Rectangle tool.
  • Triangle: Use the Rectangle tool to draw a rectangle or a square. Click on the Reshape tool and select the corner that you want to remove. Click on the Delete tool to turn your shape into a triangle.
A square shape with one corner selected.
The Reshape tool.
The Delete tool.
A triangle shape.

You can use the Fill tool to change the colour of a shape:

The Fill tool.
The Fill colour chooser and the new colour of the shape.

You may need to use the Forward and Backward tools to move your shapes forward or backward so that they are positioned correctly within your image:

The Forward and Backward tools.

You can select all the shapes and Group them together so that you can adjust them or move them as one shape:

The Group tool.
Multiple shapes selected.

Here is an example of a sprite created with the Circle and Rectangle tools:

PigSee inside

Remember to name the costumes and backdrops that you create in the Paint editor.

Click on the Fill colour chooser and select the colour that you want for your text:

The Fill colour chooser menu showing sliders to control Color, Saturation, and Brightness.

Select the Text tool:

The Text tool.

Click on the Paint editor and start typing.

Click on the Font drop-down menu and select the font that you want:

The Font drop-down menu showing the fonts available to use within Scratch.

If you want to resize your text, click on the Select (Arrow) tool and select the text, then drag the corner handles to resize the text:

The Select (Arrow) tool and resize handles.

If you want to change the Fill colour of your text, use the Fill colour chooser to select a colour, then select the Fill (Bucket) tool and hold your mouse cursor over the text (or if you are using a tablet, tap the text). The text will automatically change colour. Click on the text to make the change:

The Fill (Bucket) tool.

If you want each word in a message to be a different colour, size, and font, follow the process above for each word in your message.

Position your text and/or group of words with the crosshair in the centre of the Paint editor:

The crosshair.

To layer your words, use the Forward and Backward tools:

The Forward and Backward tools.

Click on the Costumes tab for your sprite.

Tip: Duplicate the costume that you want to edit — so that you can still use the original costume if you need to. To do this, right-click (or on a tablet, tap and hold) on the costume and choose duplicate. You will now have a copy of the costume:

The 'duplicate' option highlighted in the menu.
The duplicated costume is located just below the original costume in the Costumes tab.

To remove any part of the costume that you do not need any more, click on the part to select it, then click on Delete:

The nano-a2 costume with one arm selected.

The duplicated costume with parts removed should look something like this:

The nano-a2 costume with the arm deleted.

Tip: If you make a mistake in the Paint editor, you can click on Undo:The 'Undo' icon.

Go to the costume with the part that you want to add and click on the part that you need, then click on Copy:

The nano-c costume with one arm selected.

If you want to add a part from a costume that is not already shown in the Costumes tab, you need to add the costume to your sprite first. Click on the Choose a Costume icon, then find the costume that you want and click on it to add it to your sprite:

The 'Choose a Costume' icon highlighted.

When you have copied the part that you need, go back to the duplicated costume and click on Paste. The duplicated costume should now look something like this:

The nano-a2 costume with the arm from the nano-c costume.

Now, switch to the Code tab. You will be able to use the new costume in your code blocks:

Click on the Costumes tab and then on Choose a Costume to add any costume to the sprite from the Costume Library:

The 'Choose a Costume' icon highlighted.

You will need to position and resize the added costume in the Paint editor, to match the sprite’s other costumes.

Tip: If you position a sprite on the Stage and then change its costume, the sprite might appear to ‘jump’ or change size. You will need to position and resize the costumes in the Paint editor so that they all appear in the right position on the Stage.

Add sound 🎵

Select the sprite that you want to have the new sound, then select the Sounds tab. Each sprite starts with a default sound:

The Sounds tab open in the Scratch editor.

Scratch has a library of sounds that you can add to your sprites. Click on the Choose a Sound icon to open the Sound Library:

The 'Choose a Sound' icon highlighted.

To play a sound, hold your mouse cursor (or your finger, if you are using a tablet) over the Play icon:

'Play' icons.

Click on any sound to add it to your sprite. You will be taken straight back to the Sounds tab and you will be able to see the sound that you have just added:

A newly inserted sound in the Sounds tab.

If you switch to the Code tab and look at the Sound blocks menu, you will be able to select the new sound:

The 'Sound' blocks menu, with the new sound available for use within blocks.

Tip: You can also add sounds to the Stage.

The record icon from the add sound menu.

Select the sprite that you want to have the new recorded sound, then select the Sounds tab:

The Sounds tab open in the Scratch editor.

Go to the Choose a Sound menu and select the Record option:

The 'Choose a Sound' menu, with the 'Record' option highlighted.

When you are ready, click the Record button to start recording your sound:

The 'Record Sound' pop-up window with the 'Record' button.

Click the Stop recording button to stop recording your sound:

The 'Record Sound' pop-up window with the 'Stop recording' button.

Your new recording will be shown. You can Re-record your sound if you are not happy with it.

Drag the orange circles to crop your sound; the part of the sound with a blue background (between the orange circles) will be the part that is kept:

The recorded sound in full, with orange circles adjusted to show only part of the sound within a blue background. The rest of the sound is in an orange shaded area.

When you are happy with your recording, click the Save button. You will be taken straight back to the Sounds tab and you will be able to see the sound that you have just added:

The Sounds tab, with recording1 showing in the list of sounds.

If you switch to the Code tab and look at the Sound blocks menu, you will be able to select the new sound:

The 'Sound' blocks menu, with recording1 available for use within blocks.
The text to speech blocks menu icon.

Pico and Giga talk with the speech extensionSee inside

Click on Add Extension:

The 'Add Extension' icon.

Choose Text to Speech:

The 'Text to Speech' extension highlighted.

You will get a new Text to Speech blocks menu:

The 'Text to Speech' blocks menu.

Scratch editor reminders

You can copy code from one sprite to another sprite in the Sprite list:

Drag code from one sprite's Code area to another sprite in the Sprite list, then let go of the code.

Both sprites will have the code blocks that you have copied. If you are moving the code from one sprite to the other, you can delete the code from the first sprite after you have copied it to the other sprite.

To run your project in full-screen mode in Scratch, go to the area above the Stage and click on the icon with four arrows that point outwards. This is the Full Screen Control icon:

The 'Full Screen Control' icon highlighted, above the Stage, towards the right-hand corner.

To exit full-screen mode, click on the Full Screen Control icon again. It will have four arrows that point inwards.

Right-click (or on a tablet, tap and hold) on your first sprite in the Sprite list below the Stage:

The Sprite list, with the first sprite highlighted and a pop-up menu showing the options 'duplicate', 'export', and 'delete'.

Select duplicate. This will create a copy of your first sprite, with the suffix “2”:

The Sprite list showing the first sprite and the duplicate sprite.

Rename your sprite:

The Sprite pane, with the 'Sprite' field highlighted.

Your sprite’s name will change in the Sprite list:

The Sprite list showing the duplicate sprite with a new name.

Your second sprite has exactly the same code as your first sprite. Do not run the program until you have started to change the second sprite’s code — you might not see the second sprite because it might be positioned underneath the first sprite.

Test: 🔄 Show someone else your project and ask for 🗣️ their feedback. Do you want to make any changes to your book?

⏱️ If you have time, you can upgrade your project.

💡 You could:

  • Add more code to your sprites
  • Add another sprite
  • Add another page
  • Record a sound
  • Create a new costume in the Paint editor

Debug: 🐞 You might find some bugs in your project that you need to fix. Here are some common bugs:

Check that the sprite has when backdrop switches to scripts with show or hide blocks as needed. Check that you have chosen the correct backdrop name in the when backdrop switches to block. It helps to give backdrops names that you can understand easily, to help spot problems like this.

Add a set rotation style left-right or set rotation style don't rotate block.

Make sure that the costume is centred in the Paint editor (line up the blue cross in the costume with the crosshair in the centre of the Paint editor).

Have you added a block to play sound when needed? If you have copied code from another sprite, you will need to add the sound to this sprite in the Sounds tab. Check the volume on your computer or tablet, and make sure that you have not lowered the volume with code — try set volume to 100.

Add a go to front layer block.

Put your code inside a forever block so that it keeps running.

Check what order your backdrops are in: click on the Stage pane and then on the Backdrops tab to view the backdrops for your project.

You might find a bug that is not listed here. Can you work out how to fix it?

🗣️ We love hearing about your bugs and how you fixed them. Use the Send feedback button at the bottom of this page and tell us if you found a different bug in your project.

×
×

Cart