Page 31 - 2501_KVS_C-4
P. 31
3 SCRATCH
Your Aim
3.1. Playing with Sounds—“Sound” Block 3.4. “Touching?” Block —“Sensing” Block
3.1.1. “play sound... until done…” block 3.4.1. “touching mouse-pointer?” block
3.1.2. “start sound” block 3.4.2. “touching color?” block
3.1.3. “change volume by…%” block 3.4.3. “color is touching?” block
3.1.4. “set volume to…” block 3.5. If Block —“Control” Block.
3.1.5. “change… effect by…” block 3.5.1. “if…condition?…Then” block
3.1.6. “set… effect to…” block 3.5.2. “if…condition?…Then…else” block
3.1.7. “stop all sounds” block
3.1.8. “clear sound effects” block 3.6. “Wait Until…” Block —“Control” Block
3.2. Adding an Extension— “Text to Speech”. 3.7. Stop Block —“Control” Block
3.3. Looping—“Control” Block. 3.7.1. “stop all” block
3.3.1 “repeat…” block 3.7.2. “stop this sprite” block
3.3.2 “repeat until…” block 3.7.3. “stop other scripts in sprite” block
Aryan: I was thinking, what if I want my sprite to make some sound for effects.
Gowri: Yes, I told you that sprites can also play some sounds. But every sprite has few fixed
sounds in Scratch. You can choose the sound from the option given already.
Aryan: OK! Then please tell me how to do this now.
Gowri: Sure! Sure! There is one block, named “sound”, which has 9 different blocks
and also there are extensions in Scratch for sound. First, let me tell you about
Sound block and later I will tell you about extensions of the Scratch for sounds.
3.1 PLAYING WITH SOUNDS— “SOUND” BLOCK
There are a total of 9 blocks in the sound blocks; 8 stack blocks and 1 reporter block.
Sprites can play different sounds through sound block. Sounds of the sprites are
built-in, meaning it’s fixed, we can choose any sound from these lists by using any one
of the blocks, given below.
3.1.1 “play sound... until done…” block
This block chooses the sound and plays the selected sound and finishes it before
moving to the next script. It pauses the script till it ends.
Scratch 29

