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

Here you will learn how to make a letter bounce.

A letter might bounce to represent a sport, the way an animal moves, or a person’s upbeat personality.

To start, add a new sprite to your project.

Scroll through the library of available sprites until you find the letter you need.

Click on the sprite to add it to your project.

This example uses the letter “A,” but you will add a sprite for the name you are animating.

From the scripts tab, select the “motion” menu.

Click, hold, and drag out a “change y by” block.

Change the value in the block to 20.

Click the block to see what it does.

The sprite moves up.

But, for it to bounce, it needs to move down as well.

To make the sprite move down, drag out another “change y by” block, and change the value to negative 20.

Don’t connect the two blocks.

Click the block.

The sprite moves down!

Next, make the sprite move up and down repeatedly, so it bounces.

Connect the two “change y by” blocks.

Then, click the “control” menu.

Drag out a “repeat” block, and place it around the two “change y by” blocks.

Click the block stack.

It seems like the sprite doesn’t move, but it actually moves so fast, you can’t see it.

To fix this, click the “control” menu, and drag out a “wait” block.

Place it inside the “repeat” block, above the “move” blocks.

Drag out another “wait” block, and place it between the two “move” blocks.

Click the block stack.

The sprite bounces, but too slowly.

Change the values in the “wait” blocks to a smaller number, like zero point one.

Click the block stack again.

That’s better!

Next, make the sprite play a sound while it bounces.

Click the “sounds” tab.

Then, click “add a sound.”

Find a sound you like in the Scratch library.

Click the play button to hear the sound.

Select the the sound you want to add to your project and click “OK.”

After you choose a sound, return to the scripts tab.

Select the sound menu.

Drag out a “start sound” block, and place it in your block stack under the first “wait” block.

Change the dropdown menu to the sound you added.

Click the block stack.

The sprite bounces and plays a sound!

To run this code when the sprite is clicked, select the “events” menu, and drag out a “when this sprite clicked” event.

Attach it to the top of your block stack.

Click the sprite.

The sprite bounces and plays a sound when you click it!

Now someone can use the code you created simply by clicking the letter in your name.

Now, it’s your turn: Add a new sprite to your project.

Add a “change y by” block.

Add another “change y by” block, and change the value to negative 20.

Add a “repeat” block.

Add two “wait” blocks.

Add a sound to your project.

Add a “start sound” block, and choose your new sound from the menu.

And add a “when this sprite clicked” event.

Once you finish these steps, return to this page to select another video.

Choose an Add-On
Change Color
Change the color of a letter when it’s clicked.
Grow and Shrink
Change the size of a sprite when it’s clicked and add a sound to match the animation.
Draw a Letter
Draw your own letter and make it move.
Spin
Add a letter and rotate it when it’s clicked.
Bounce
Move the sprite up and down and add a sound as it bounces
Wave
Create and change to different costumes.
Bounce Everywhere
Move the sprite all around the stage, then make it return to a specific point.
New Backdrop
Switch to a different backdrop by clicking the letter or sprite.
Say Something
Make the letters talk to each other when the green flag is clicked.
Sprite Dance
Make a sprite dance when the sprite is clicked.
Add Background Music
When you click a sprite, play a song and change the background
Play a Beat
Play a drum beat when the sprite is clicked.
Next arrow_forward
Instructions
  1. Watch the introduction video.
  2. Open the Starter Project below.
  3. Return to this page and watch more videos to customize your project.