Scratch exercise 37

Simple broadcasting

We can send a message from one sprite to another sprite or to and from the stage.

Complete this exercise.

 

1. Create a new game. Either open Scratch or if it is already open choose "File>New" ..

 

 

2. Add this script to the Cat sprite ..

 

 

3. Paint a simple square. We've added an orange corner to ours to make it easier to see it spin ..

 

 

4. Add this script to the square ..

 

 

5. Click the Cat sprite to test your game.

 

 

6. Save your game. Name it "Broadcasting simple".

 

 

Change the stage background with a broadcast

Change the background when one sprite (a ball) touches another (the Cat) ..

 

1. Paint a ball and add this script to it ..

 

 

3. Create several stage background costumes ..

 

 

4. Add this script to the stage ..

 

 

5. Save your game. Name it "Broadcasting to change background".