Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 109 - 2607_Trackpad_Pro_5.1_flipbook_C4
P. 109

    WAIT BLOCK

                     This block makes the script wait for the number of seconds specified by us, before the
                     next block follows.  Sometimes,  it  is important  to  use the Wait  block          wait  1  seconds
                     otherwise,  the movements  would occur  so quickly  that  it  would be
                     difficult to observe them.

                         Tick ( ) if you know this.
                         ▶   Forever block is used to make the sprite do something infinitely (nonstop) until a
                           command is passed over it by the user.

                         ▶  Pen down block places the pen in the down position.

                               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                                                   4  Click on the
                                                                                                       Dragon sprite
                                             wait  1  seconds
                                                                                                       or Jordyn
                                             change size by  10                                        sprite in the
                                                                                                       Sprites Info
                                                                                                       Pane to make
                                                                                                       it active.

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

                                                                                             Drawing Shapes in Scratch  107

| 104 105 106 107 108 109 110 111 112 113 114 |