O'Reilly logo

Adventures in Coding by Chris Minnick, Eva Holland

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

image

IN THIS ADVENTURE, you find out how distance is measured in Scratch. You also learn the different ways to move sprites around the Stage, and how to rotate and even spin sprites. You discover how to customize the backdrop so that action in your program can look like it’s taking place in a location of your choosing or creation—even in your own home or backyard!

Setting the Stage

Take a look at the Stage in Scratch. It’s a relatively small part of the Project Editor, but this is where every visible part of your program will happen. The amount of space that it takes up on your screen depends on how large your computer monitor is. On most screens, it takes up about a quarter, or maybe less, of the screen, as shown in Figure 2-1.

image

Figure 2-1 The Stage takes up just a portion of the Project Editor

In spite of its relatively small size, the Stage is made up of 172,800 tiny dots. Each of these tiny dots is called a pixel.

If you use the Small Stage Layout, as shown in Figure 2-2, there are still 172,800 different pixels on the Stage. You may be wondering how this can be true, when the Stage is clearly ...

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