Book Image

Scratch 2.0 Beginner's Guide: Second Edition

By : Michael Badger
Book Image

Scratch 2.0 Beginner's Guide: Second Edition

By: Michael Badger

Overview of this book

Table of Contents (18 chapters)
Scratch 2.0 Beginner's Guide Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action – moving the cat across the stage


As a warm up, we're going to make the default Scratch cat move across the stage.

  1. Click on the Create button to open a new project in the editor. The project contains a single sprite—the Scratch cat.

  2. In the blocks palette, click on the Events button.

  3. Drag the when flag clicked block to the scripts.

  4. In the blocks palette, click on the Motion button.

  5. Drag the move (10) steps block to the scripts area and snap it to the bottom of the when flag clicked block, as shown in the following screenshot:

    Tip

    How to snap two blocks together

    As you drag a block onto another block, a white line is displayed to indicate that the block you are dragging can be added to the script. When you see the white line, release your mouse to snap the block in place.

  6. Click on the green flag above the stage repeatedly to set our first Scratch program in motion.

    Tip

    If the cat reaches the end of the stage, you need to manually move the sprite to the left side of the stage by clicking...