It's Sean!

UK freelance journalist, author
and writer Sean McManus

Printed from www.sean.co.uk. © Sean McManus.

NEW: Sign up for my newsletter!

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.

Books by Sean McManus

Scratch Programming in Easy Steps

Scratch Programming in Easy Steps

Raspberry Pi For Dummies

Raspberry Pi For Dummies

Learn to program with the Scratch programming language, widely used in schools and colleges.

Set up your Pi, master Linux, learn Scratch and Python, and create your own electronics projects.

Coder Academy

Coder Academy

Cool Scratch Projects in Easy Steps

Cool Scratch Projects in Easy Steps

Learn to make games and other programs in Scratch 2.0, and make a web page in HTML, with this highly interactive book for 7-10 year olds.

Discover how to make 3D games, create mazes, build a drum machine, make a game with cartoon animals and more!

More books

Recommended articles

Stylised coloured photo of a synth

Discover my music and home recording articles

Interested in starting home recording? Follow me as I start recording, using instruments such as the Novation MiniNova and Korg Kaossilator, and share my synth and sample-based music online.

Scratch cat and rainbow circle

10-block demos for Scratch programming

Lots of people of all ages are learning to program with Scratch. Discover some useful tricks and techniques in my 10-block Scratch demos, including special effects you can drop into your games.

Paper Raspberry Pi case

Download free book chapters and more!

Download a free case for your Raspberry Pi, and free chapters from my books about the Raspberry Pi, Scratch, web design and more!

©Sean McManus. www.sean.co.uk.