Page 80 - Trackpad_ipro 4.1_Class6
P. 80
Step 4 Click on the Ok button.
The variable appears in the list of Variables blocks. Observe that the variable name fruit
appears in all the blocks.
Now create the following script.
Clickipedia
Every time you type a name
or number, the previous
value in the variable gets
deleted and the new value
is stored.
The sprite will ask you to type your favourite fruit. When you press the Enter key, the name of
the fruit appears in the speech bubble of the penguin. The name of the fruit then appears in the
answer as well as in the variable name on the stage.
78 iPro (Ver. 4.1)-VI

