Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 95 - 2612_Digimind
P. 95

    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                                             4  Click on the

                                           change size by  10                                          Dragon sprite
                                                                                                       or Jordyn
                                                                                                       sprite in the
                                         3  Add the Jordyn sprite                                      Sprites Info
                                         from the 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                        when   clicked
                                glide  1  secs to x: 100 y:  50      move  30  steps

                                repeat  10                            say  Hello Everyone!  for  2  seconds

                                 wait  1  seconds                    move  30  steps
                                  change size by -10                  say  I have seen a flying Dragon  for  2  seconds

                                                                                             Drawing Shapes in Scratch  93

| 90 91 92 93 94 95 96 97 98 99 100 |