Page 84 - TP-Play_V-2.0_Book-5
P. 84

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

            Step 3   Add a new backdrop to the stage, Arctic.







                                                                                   4

               1                                    2                          5

                                                                                                     3






            Step 4   Now drag the ask 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 cursor. Type
                     your name. It will appear in the input box. Click on the tick button or press
                     the Enter key. You will notice that the input box waits for your input.

                     Also, 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.
            You can also place the answer block in the say block. It                 say answer for 4  seconds

            will look something like this.
            Snap this block to the ask block. Now click and

            see what happens. Penguin speaks the name
            for the given number of seconds.
            You can change the question in the ask block

            to any question of your choice. Click on the
            text box and type the question.

                VARIABLES


            A program is a group of commands and instructions that tell the computer to
            carry out a task. In scratch, a program is called a Script. A Script is made up of a
            number of blocks. So, the blocks are the commands or instructions that we give to

            the sprite to perform a task.
            All the numbers, text, date or pictures that we use in a program are called data.
            We store this data in the computer memory so that we can get information from

            it later.



             84       Play (Ver. 2.0)-V
   79   80   81   82   83   84   85   86   87   88   89