Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 89 - 2505_CoreGPT(Podar)_Flipbook_C3
P. 89

    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.

                     The Repeat and Repeat Until blocks can be used to display the table of a number

                     input by the user. The script for the sprite can be like this (using the Repeat Until
                     block). Following is the script for displaying table of a number:

                     The output of the program will be similar to this.

                           PLAYING MUSIC WITH A SPRITE

                     Sound blocks are in pink colour. They control sound functions. We can add music
                     to our Scratch project by using Sound blocks. You can even record your voice and
                     save it. You can play it with a sprite.

                                             block plays a sound without pausing the

                        script. The sound options are Meow and record.

                                                  block plays the sound by pausing the script until the sound

                        has finished playing. The sound options are Meow and record.

                                                                                                  More with Sprite       87

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