Page 66 - 2619_PlusGPT V2.1_C-6
P. 66

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.





                  64    Premium Edition-VI
   61   62   63   64   65   66   67   68   69   70   71