Page 112 - CodePilot V5.0 C4
P. 112
Step 2 Add Baseball 1 backdrop.
Step 3 Create the given script for the sprite Batter and click the Green Flag to
run the project.
when clicked
switch costume to batter-a
move 10 steps
switch costume to batter-b
glide 5 secs to x: 20 y: 45
next costume
if on edge, bounce
say Home Run for 2 seconds
SOUND BLOCKS
Sound blocks make your projects lively with music and voices. You can play sounds,
change volume, add effects or record your own music by selecting the record option
from the Meow down arrow.
Some of the commonly used Sound blocks with their descriptions are as follows:
It is used to play the selected sound and wait until it
play sound Meow until done
finishes before continuing the script.
It is used to play the selected sound without pausing
start sound Meow
the script.
This block stops all currently playing sounds
stop all sounds
immediately.
CONTROL BLOCKS
Control blocks help manage how your project runs by adding logic like loops, pauses
and conditions. These blocks control the flow of a project.
110 CodePilot (V5.0)-IV

