Page 134 - ScienceStd4
P. 134
10. Play the game. Repeat playing the game as many times
as you like. What did you notice when you played this
game?
Game with sound
FOR ONLINE READING ONLY
You can create a program that makes a ‘Sprite’(Cat) produce
sound or add sound effects into the game. Sound blocks are
used to play sounds.
Activity 10
Game with sound
In this activity, you will prepare a program that makes a
‘Sprite’(Cat) produce sound on the script area.
Steps
1. Click on the ‘Events’ block menu. Drag and drop the ‘when
clicked’ block.
2. Click on the ‘Sound’ block menu. Drag and drop the ‘play
sound until done’ block on the script area.
3. Attach the ‘play sound until done’ block to the ‘when
clicked’ block, as shown in Figure 30.
127
14/01/2025 18:38
SCIENCE AND TECHNOLOGY STD 4.indd 127
SCIENCE AND TECHNOLOGY STD 4.indd 127 14/01/2025 18:38