Page 59 - PlusGPT_V2.1_C1_Flipbook
P. 59
Or
Click on For this sprite only if you want this variable to appear all the the sprites only. Here
we have added the variable fruit. It will be available for all the sprites.
Step 4: Click 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.
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.
Scratch Programming 57

