Page 104 - Trackpad_V2.1_Class4
P. 104

WORKING WITH TWO SPRITES


                  In Scratch, we can work with two sprites. Let us learn how it works.


                  FUN WITH DRAGON AND JORDYN

                  Create a scene with Dragon and Jordyn by following the given steps:








                                       when   clicked
                                       glide  1  secs to x: 100  y:  50
                                       repeat 10
                                        wait  1  seconds
                                        change size by  10                                           4  Click on the
                                                                                                     Dragon sprite
                                                                                                     or Jordyn
                                            3  Add the Jordyn                                        sprite in the
                                            sprite from the                                          Sprites Info
                                            People category.                                         Pane to make
                                                                                                     it active.


                                                    2  Add the Dragon sprite       1  Click on Choose
                                                   from the Fantasy category.      a Sprite option.



                             Code for Step 2                                  Code for Step 3


                                when     clicked
                               glide  1  secs to x: 100  y:  50            when     clicked
                                repeat 10
                                                                            move 30  steps
                                wait  1  seconds
                                                                            say  Hello Everyone!  for 2  seconds
                                 change size by -10                         move 30  steps
                                                                            say  I have seen a flying Dragon for 2  seconds






















                  102   Trackpad (V2.1)-IV
   99   100   101   102   103   104   105   106   107   108   109