Page 84 - TP_Prime_v2.2_Class_5
P. 84

Sensing an Input



                  To add the sensing blocks to the script, follow the given steps:
                  Step 1:   Click on the Sensing block category in Tabs.


                  Step 2:   Insert a sprite, Penguin 2 on the stage. Delete the cat sprite.

                  Step 3:   Add a new backdrop to the stage, Arctic.
           Prime (Ver. 2.2)-V  Step 4:   Now drag the ask...and wait block to the script area. Click on the block.



                            A  speech  bubble  appears  above  the  penguin  with  the  text,  “What’s
                            your name?”.

                                 You will also see an input box

                            on the stage with a blinking

          82                cursor. Type  your  name.  It
                            will appear in the input box.
                            Click  on the tick button  or         1

                            press the  Enter key.  You
                            will notice  that  the  input

                            box waits for your input and                                                         2
                            when you type the name and

                            press Enter key, the name disappears.

                  Step 5:   To display the typed name also, click on the check box before the answer
                            block. The answer appears on the stage.








                                                              4


                                     5


                                                                                                 3







                  You can also place the answer block in the say block. It will
                  look something like this.
   79   80   81   82   83   84   85   86   87   88   89