It's Sean!

UK freelance journalist, author
and copywriter Sean McManus

Printed from © Sean McManus.
Home > Books > Scratch Programming in Easy Steps > 10 block demos > Simple broadcasts example

How Scratch broadcasts work, and how to teach them

Sean McManus, author of Scratch Programming in Easy Steps and Cool Scratch Projects in Easy Steps, shows you how to demonstrate broadcasts in Scratch

I am a Code Club volunteer, and before starting the third Code Club project (fireworks), I created a simple demonstration to show my club how broadcasts work in Scratch. I talked through it at the start of the session, and kept it as simple as possible, and the club members all had a go at making it before beginning the main project.

Teachers, Code Club volunteers, and Scratch students might also find it useful.

What are broadcasts in Scratch?

A simple demonstration of broadcasts

  1. Start a new project
  2. In Scratch 2.0, import the sprite Bat1
  3. If you're using Scratch 1.4, add sprite bat1-a, and add the costume bat1-b
  4. Add this script to the cat sprite:

    When this sprite clicked / broadcast Fly

  5. Add this script to the bat sprite:

    When I receive fly / move 10 steps / next costume

  6. Run the program. When you click the cat, it sends an invisible message to the bat, the bat receives the message and flaps its wings and flies.

Try the example program

Click the cat to make the bat fly.

What else should I know about broadcasts?

Demo card for sharing

Here's a card that encapsulates all this. Feel free to share the image below on Twitter, Facebook or your other social networks

Card demonstrating broadcasts using the code explained above

Find out more...

Find more 10 block Scratch demos here. For more information on my Scratch books and more bonus content, visit the Scratch Programming in Easy Steps and Cool Scratch Projects in Easy Steps.