Page 114 - CodePilot V5.0 C5
P. 114
Step 4 Select the New message option from the
drop-down arrow broadcast message1 .
New message
message1
Step 5 Type the Wizard’s reaction in the New message
name box and click on OK.
Step 6 Drag the when space key pressed block and put it above the broadcast block.
Step 7 Drag the say Hello! for 2 seconds block and type the text after clicking the
text box.
Step 8 Create the given scripts for both sprites Wizard and Broom. Make the
required changes.
when space key pressed when I receive Wizard's reaction
say My magic broom, where are you! for 2 seconds say I am coming my dear Mistress of Magic! for 2 seconds
broadcast Wizard's reaction glide 3 secs to x: -51 y: -105
Step 9 Press the Spacebar key to run your project.
RAPID RECALL Tick ( ) if you know this.
1. The Broadcast and Receive blocks are found in the Events block category.
2. Broadcast and Receive blocks are useful for controlling different parts of a
story/game.
VARIABLES
Variables are like labelled boxes that store information
your program can use, change and display. You can
use them to store numbers, text or other information
that needs to be updated or referenced throughout your
project. You can create your own variable by clicking on
Make a Variable button.
Create a New Variable
112 CodePilot (V5.0)-V

