Page 116 - TGPT_V5.0_C3_Flipbook
P. 116

Double Tap                                                  Century   #Information Literacy
                                                                                     21 st
                                                                                     Skills  #Critical Thinking

                     Answer in one word.
                     1.  What is the green flag button called?

                     2.  What is the red button called?

                     3.   Which block is used at the top of the script to run the program?




                   CREATING A NEW PROJECT


              Follow the given steps to create a new project:

                                1
                                    Click on File tab.
                                                                                                    2
                                                                             Select New option.







              Creating A Scratch Project—Talking Sprites


              Let us now create a script to make the two sprites move and talk to each other.
              Step 1:  Click  on  the  Cat sprite. Drag the  Looks speech
                       bubble block to the coding area. Type the message
                       in the text box of the block.

              Step 2:  Click on the Mouse sprite. Drag the Looks speech
                       bubble block to the coding area. Type the message                          Cat sprite
                       in the text box of the block.

              Step 3:  Click  on  Motion block  and  drag  the  block  to  the  coding
                       area. When you bring this block below the speech block, it
                       will attach itself. Change the number of steps to 20 in the
                       text box of the block.                                                       Mouse sprite

              Step 4:  Click on the Event block and add it to the top.

              Step 5:  Click  on  the  Green  flag  and  see your cat and
                       mouse talk and move.














                  114  Premium Edition-III
   111   112   113   114   115   116   117   118   119   120   121