Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 113 - KEC_2615
P. 113

    The  Repeat block  is used  to  run  a set  of instructions  for  a
                     specified number of times.

                                             The Repeat until block is used to run a set of instructions till a

                                             condition is satisfied.

                     The Forever block is used to run a set of instructions continuously

                     until stopped. The instructions inside this block will be executed
                     in a loop until the Stop         button is clicked by the user.

                     Let us create a small script to see the looping blocks use.

                     Create the following script and click on the Green Flag:

                               CREATING A SCRATCH PROJECT

                     Scratch  allows you  to  animate  sprites  and add  sounds  using  different block
                     categories. Let's create an exciting project that combines movement and sound

                     using Scratch blocks!

                     To create an animal glide and make sounds, follow the given steps:

                     Step  1       Choose multiple animal sprites from the Scratch library.

                     Step  2       Select a jungle-themed backdrop to create a natural setting.

                     Step  3       Change the size and position of the sprites from the Sprite Info Pane.

                     Step  4       Click on the Lion sprite and create the script.

                                                                                      Events, Sound and Basic Animation  111

| 108 109 110 111 112 113 114 115 116 117 118 |