Skip to content

Please update your browser

Your browser version is not supported by this site. CS First may not work properly. Learn more

Transcript

In this add-on, you will program a sprite to count down to the start of the race and cheer for the racers. First, add a new sprite to your project. This example adds the Dinosaur3 sprite, but add any sprite you choose. Use the “shrink” tool to make the sprite fit nicely on the stage, so it doesn’t crowd the race track.

Next, program the sprite to say “ready… set… go!”

Drag out two “say” block from the looks menu, and type “Ready…set…” in the first one and “GO!” in the second. Awesome. The sprite should kick off the race when the game starts, so add a “when flag clicked” block from the events menu above the “say” block. Great. Test this. When the flag is clicked, the sprite says “ready… set… GO!” Next, add a sound to signal the start of the race! Click the sounds tab, and “choose new 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 back to the scripts tab, then click the “sound” menu. Drag out a “play sound” block, click the dropdown menu, and select the sound you chose. Test this. Cool!

To add a race fan 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 clicked” block, then a “say” block. Type a message for the sprite to say. This example says “I want the elephant to win!” Test this.

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 sprite’s message. This example waits 6 seconds. Awesome. 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.

Choose an Add-On
Change Up your Racetrack
Add a button that changes the racetrack backdrop.
Costume Change
Change what the racers look like when a key is pressed.
Step on the Gas (Part 1 of 2)
Change how fast the racers move, then make them slowdown on the grass.
Step on the Gas (Part 2 of 2)
Change how fast the racers move, then make them slowdown on the grass.
Crashing Sounds
Play a crashing sound each time the racers hit each other.
Race Fans
Program a sprite to count down to the start of the race and cheer.
Color Trail
Add a colorful trail effect to the racers.
arrow_backward Back
Next arrow_forward
Instructions
  1. Choose an Add-On, and click "watch" to learn how to build it.
  2. Once you finish one Add-On, try another one below the video!