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 – drawing bricks


To clone a brick, we need to first make a brick. We'll use the paint editor to do that. We'll use this single brick to build a continuous row of bricks across the width of the stage in a later exercise. Let's follow the given steps to create a brick:

  1. Create a new sprite with the paint new sprite icon, and then convert the sprite to the vector mode.

  2. Use the rectangle tool to create a solid yellow shape.

  3. Draw the rectangle to be 48 pixels wide and 25 pixels tall. To see the current size of the rectangle, look at the thumbnail of the costume to see the current size. The width of 48 pixels will allow us to create 10 blocks to span the width of the stage. We have more flexibility in the actual height.

  4. The following screenshot shows the costume thumbnail with the image dimensions:

  5. You can resize the height and width of the shape by dragging the borders of the rectangle. This step takes some finesse to get the right size.

  6. Don't forget to set the costume center.

What just...