O'Reilly logo

Raspberry Pi For Kids For Dummies by Richard Wentk

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6

Start Scratch from Scratch

You can use your Pi to make games and play with real code. This project is about a simple way to get started with coding. It’s called Scratch, and it’s a lot of fun.

image

Understand Scratch

Scratch is the simplest way ever to make your own software by creating computer code. Usually when you write code, you type words that look a bit — but not much — like English.

With Scratch you don’t have to type anything. You get a big (virtual) box of blocks and a stage where things happen. The stage has characters called sprites, which can move around the stage, bump off the walls and off each other, and do all kinds of other stuff.

Each block does something different. Some blocks move a sprite. Other blocks turn a sprite or make it change color. Some blocks check whether a sprite is touching another sprite or the sides of the stage.

You can make sprites show talk bubbles or think bubbles, get bigger or smaller, or change them in many other ways. Figure 6-1 shows a sprite saying something with a talk bubble.

tip Scratch was made for kids, but adults can use it, too. Scratch is a really good way to get started with coding before moving to more complicated ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required