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 – displaying the dog scene


We continue to build around the broadcast message enter dog to display the sprites and background of the dog chapter:

  1. Now that we have cleared the table of contents, we need to load the dog scene. We'll bring in the backdrop first and the dog second. Select the Dog TOC sprite.

  2. From the Looks palette, add the switch to backdrop to () block to the end of the when this sprite clicked stack and choose bedroom1. The revised script can be seen in the following screenshot:

  3. Now let's display the dog. Select the Dog2 sprite.

  4. From the Events palette, add the when backdrop switches to () block to the scripts area. Select the bedroom1 backdrop.

  5. From the Looks palette, snap the show block to the script.

  6. Now attach the when backdrop switches to (bedroom1) stack to the top of the script that begins with the switch costume to (facing-right) stack that initiates the dog's joke sequence.

  7. After the scene changes, we want to delay the start of the action for a few seconds...