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 – transforming sprites


Next, we want to introduce the sprites that spell mom, and as we show the letters, we'll use the graphical effects to transform the letters:

  1. We're going to start by adding the when I receive () block to the scripts area for Second M.

  2. To unhide the letter M, we need to add the show () block.

  3. Click on the green flag to see the script run so far. As Happy Birthday flashes on the screen, the second letter M appears on the screen. Click on the stop button when you're ready to continue.

  4. We're going to transform the m by using the mosaic effect and a repeat loop. From the Control palette, snap the repeat () block to the bottom of the show block and change the value to 25.

  5. From the Looks palette, add the change () effect by () block to the repeat loop. Change the effect from color to mosaic by selecting mosaic from the drop-down list as seen in the following screenshot:

  6. Click on the green flag and watch the effect of our action. Our m is a mosaic, but it's no longer...