In this add on you'll create a drum beat and an instrument accompaniment to make your game more exciting.

First, make a drum beat.

Here, you'll find the play drum block.

It plays a drum sound.

You can change two values in this block.

The first is the type of drum.

Click the drop down menu and try a few.

(drum sounds)

When you create your song you'll want to test many different sounds until you find the one you want.

The second value changes the drum beat.

To explore how the beat works put the play drum block into a forever loop.

Click it and tinker with the beat value until you get a sound you like.

(hand clap sounds)

Most popular music uses quarter, half, and whole notes.

So a good rule of thumb is to use .25, .5, and 1 as beat values.

This will give your song a smooth rhythm.

This example will fast forward through making a drum beat so you can see the basics.

But feel free to explore and create your own.

(upbeat drumming)

Next, add another instrument.

Use the play note block to play musical notes.

This example uses four blocks because the drum beat also has four blocks.

Change the notes these blocks play.

Play around with a few and find a sound you like.

To loop these notes and play while the drums play add a forever loop and a when flag clicked event.

(upbeat piano music)

Finally, change the instrument being played using the set instrument block.

Computer science and music have a lot in common.

It's important to explore and tinker until you create something that you enjoy.

(upbeat piano music)

Now it's your turn.

Program a drum beat and another instrument using play drum, play note, forever, and when flagged clicked blocks.

Choose an Add-On

Make Your Own Music

Add a drum beat and background music to your game.

Add Another Cave Section

Design a new cave sprite with black edges and add it to your game.

Make the Game Harder

Make the player press the spacebar over and over to keep the sprite in flight.

Dangerous Cave Walls

Make the player sprite explode when it touches the walls of the cave.

Add Another Level

Create additional game levels that get faster and harder as the player progresses.


Make the sprite dive, or move down faster than it falls.


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