Scratch exercise 107

Broadcasting to change the stage

In this exercise you will create scripts that broadcast (send) a message from the Cat sprite to the stage ..

 

1. Select the stage, and then select the backgrounds tab. Use the Import button to import 4 or 5 backgrounds from the "indoors" and "outdoors" folders ..

 

2. Switch to the Scripts tab and add these scripts to the stage ..

 

3. Now select the Cat and add these scripts ..

Notice how the Cat sprite sends a broadcast message ("next background") whenever you click on it OR when it touches the edge of the stage.

 

4. Press "B" to try out your game and "E" to end it.

 

5. Use File>Save as to save your game. Name it "broadcast to stage".