In this add-on,
we'll program a sprite
to count down (drum beat)
to the start of the race
and cheer for the racers.
First, add a new sprite to your project.
This example adds a dinosaur sprite,
but add any sprite you choose.
Make the sprite fit nicely on the stage,
so it doesn't cut the race track.
Next, program the sprite to say,
ready, set, go!
Drag out two say blocks
from the Looks menu,
and type ready... set... in the first one,
and GO! In the second.
The sprite should kick off the race
when the game starts.
So add a When the flag click block from the events
menu above the Say block.
Great, test this.
When the flag is clicked, the sprite says,
Next, add a sound to signal the start of the race.
Click the sounds tab and choose your sound from library.
This opens Scratch's library of sounds.
Choose a sound to start your race.
This example uses the Tom Drum sound.
Click the sound menu, drag out a Place Sound block.
Click the drop down menu and select the sound you chose.
To add a race band to your project, add another sprite
and resize it to fit on the stage.
This example adds a butterfly sprite.
Make the sprite talk when the flag is clicked.
Add a When flag click block then a Say block.
Type a message for the sprite to say.
This example says, "I want the elephant to win."
The new sprite says this at the same time the other
sprite says, "Ready...Set...Go!!!"
To fix this, add a Wait block from the control menu
above the Say block.
Change the value in the Wait block to delay the
This example waits six seconds.
Consider making the dinosaur sprite cheer using
another Wait block and another Say block.
Add as many race fans as you would like to your project.
Now it's your turn.
Code a new sprite to start your race using the
When flag clicked and Say blocks.
Add a sound from the library
and play it using a Play Sound block.
Add race fans to your project and code them to cheer
using When flag clicked, Say and Wait blocks.
Add a button that changes the racetrack backdrop.
Change what the racers look like when a key is pressed.
Play a crashing sound each time the racers hit each other.
Program a sprite to count down to the start of the race and cheer.
Add a colorful trail effect to the racers.
Sign in to save your project and track your progress.