Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 89 - 2606_PlugGPT_C4_Flipbook
P. 89

    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

                                                                                             Drawing Shapes in Scratch  87

| 84 85 86 87 88 89 90 91 92 93 94 |