Skip to content
Transcript

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.

Awesome.

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, "Ready...set...GO!!!"

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.

(drum beat)

Click the sound menu, drag out a Place Sound block.

Click the drop down menu and select the sound you chose.

Test this.

(drum beat)

Cool.

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."

Test this.

(drum beat)

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 six seconds.

(drum beat)

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.

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.

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!
Attributions
  • The song “Magic Marker” is © YouTube-- CC-BY-SA 4.0 does not apply.