Page 111 - KEC Khaitan C3 Flipbook
P. 111
2. Creating a script using when () key pressed block:
To create a script using when () key pressed block, follow these steps:
Step 1 From the Events block, drag
block.
Step 2 Click on the drop-down arrow and select desired
key to run the script. Here you have chosen Left
Arrow key.
Step 3 From the Motion block, drag block.
Step 4 Click on the text box to change the number of degrees.
Step 5 Press the on the keyboard to run the program.
SOUND BLOCKS
Sound blocks in Scratch allow you to add and control audio in your projects, making
them more engaging and interactive. These blocks help play sounds, adjust volume,
and control effects like pitch and tempo. You can use built-in sounds or record your
own to enhance your animations, games, and stories. Let’s explore the different
Sound blocks and how they work.
<No intersecting link>
Blocks Function
play sound () until done block plays the selected sound
and waits until it finishes before continuing the script.
Useful for adding background music or sound effects.
Start sound () block plays the selected sound without
pausing the script. Great for layering multiple sounds
at once.
Events, Sound, and Basic Animation 109

