In this codelab, you'll learn how to make some musical art.

Move your mouse around the stage. Watch the star follow your mouse and listen to the music when it touches different colors.

What you'll learn

Open the starter project , log in to your Scratch account, and click Remix.

Click the blue button in the bottom left, then click Music. Do the same for Pen.

First, we are going to create the background art. Check out the different costumes for the Shapes sprite!

Useful blocks:

Steps

  1. Pick a costume for the Shapes sprite, or make your own.
  2. Make the sprite go to a random spot.
  3. Make the sprite leave a stamp of itself.
  4. Make the sprite repeat going to a random spot and stamping itself.
  5. Start with a clear screen when the green flag is clicked.

Now, we are going to add and control the music.

Useful blocks:


Steps

  1. Make the star sprite go to the mouse when the green flag is clicked.
  2. Make the star sprite follow the mouse forever.
  3. Under a NEW hat block (when green flag clicked), add an "if" block.
  4. Make the "if" block say "if touching color."
  5. Make the star sprite play a note if it is touching green.
  6. Copy the if statement, then change it to make each color in your project play a different note.
  7. Check the colors FOREVER!
If you finish early, implement one of these features or your own!