Page 86 - 2403_Trackpad_V5.1_C3_Fb
P. 86

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.                            Cat sprite
                              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 in the text box of the block.

                         Mouse sprite

                  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.

                  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.

































                                    Suppose, you have to code an environmental conservation game
                                    in Scratch where players work to protect endangered species and
                                    preserve ecosystems. What environmental challenges they tackle,
                                    and how they make a positive impact?






                   84   Premium Edition-III
   81   82   83   84   85   86   87   88   89   90   91