Scratch exercise 01b

Begin and End a game - advanced

These scripts make sure that your games will start if a player press the "B" key OR clicks the Green Flag.

This is a more professional way to begin and end your game for you and for someone who is playing it.


Complete these steps ..


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



2. Select the stage and add the following scripts to it. You will need to create a new broadcast message "begin game" ..

Broadcasting is a way of sending a message from one sprite to another sprite.



3. Select the Cat sprite. Re-name it "Cat" and add these scripts ..



4. Press the "B" key to test your game, and the "E" key to stop it.



5. Try changing the keys which will start and stop your game.



6. Use File>Save as to save your game. Name it "Begin and end advanced".