Getting Started With Scratch

Scratch is an interactive programming language that lets you create animations, games, sounds, graphics and animated stories.

To start the scratch program go to menu -> programming -> scratch.

What You Will Need

  • Raspberry Pi
  • HDMI cable
  • Mouse
  • Keyboard
  • Speaker/Headphones
  • SD Card With the Raspbian Operating System installed
  • Compatible Screen
  • Power Supply

Making Felix Move

Make sure that you are in the Motion menu block menu on the left hand side. Drag the Move 10 steps block block into the coding area on the right.

Click on the block to make Felix move.

Well done you have programmed Felix the cat to move 10 steps.

Lets Add Sound

Click on the Sound menu block menu on the left. Drag the Play drum block and attach it to the Move 10 steps block your code should now look like this Code block 1

Click on the blocks and listen.

You can experiment by clicking on the dropdown arrow and selecting a different drum sound.

Make Felix Dance

Go back to the Motion Menu menu. Drag another Move 10 steps block block and attach it underneath the Play drum block block. Click at the start of the 10 and add a minus (-) sign. Your code should now look like this Code block 2

Click on the block of code and see what happens.

Go back to the Sound menu block menu and add another Play drum block block and attach it to the very bottom of your code block and pick a different drum sound. Your code should now look like this Code block 3

Click on the block of code to run it.

Making The Code Repeat

Click on the Control menu block menu. Drag a Repeat block block and drop it at the top of your code making it wrap around all the other blocks like this Code block 4

Click on the block of code to run it. You should see the code run 10 times then stop.

Make Felix Talk

Click on the Looks menu block menu. Click and drag a Say block block and place it below the repeat block of code you created earlier. Your code should now look like this Code block 5

Click the code to see what happens.

Now move the Say block to the top of the repeat block of code. Now your code should look like this Code block 6

Click on the code to see how it has changed.

Using The Green Flag

Click back to the Events menu block menu. Drag the Green flag clicked block block and attach it at the top of your block of code. Your code should now look like this Code block 7

Now click on the Green flag icon above Felix to run your code.

Lets Make Felix Change Colour

Click on the Looks menu block menu. Click and drag Change colour block block to the coding area. Your code should now look like this Code block 8

Now click the Change colour block to see what happens.

Using The Keyboard

Click on the Events menu block menu. Click and drag the Space pressed block block and attach it to the top of the Change colour block block. Your code should now look like this Code block 9

Now press the spacebar.

Experiment by choosing different keys from the dropdown menu.

Adding A Background

We are now going to add a background to the stage. To do this click on the Stage icon icon. Now click on the backdrops tab at the top of the code area Menu 1 next click on import Menu 2 choose any backdrop that you like.

Well done you have now created a new backdrop.

Adding A New Sprite

Every object that is displayed on the stage is called a sprite.

To create a new sprite click on one of the following icons:

Create own icon Create your own sprite.

From file icon Choose sprite from file.

Upload file upload your own sprite from file.

From Camera Upload a new sprite using the camera on a laptop.

For now click on From File and choose a new sprite.

Well done you now have a new sprite to program.

You have just learned the basics of scratch. go and explore and make something cool.

Keep having FUN while LEARNING!