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 – integrating the dog's joke sequence


With jokes in hand, let's integrate them into our scene:

  1. Snap the joke sequence to the script that ends with the set y to () block. In the next screenshot, my joke sequence is everything between the say (What are the top three reasons dogs don't use computers?) for (4) secs and say (CarPAW Tunnel Syndrome!) for (3) secs blocks.

  2. Add the stack that ends with the glide (1) secs to x: (-138) y: (2) block to the end of the joke sequence. Check your work against the following screenshot:

  3. Now let's add our drum effect to the script. We have three jokes; therefore, we will use a broadcast () and wait block to play the drum effect after each line. After each joke, insert a broadcast and wait block. Create a new broadcast message named play drums and select the play drums message in each broadcast () and wait block.

  4. Add a when I receive () block to the top of the drum effects stack and select the play drums message.

  5. Double-click on the stack that contains...