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'll 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 code 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 -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 change y by blocks.

Drag out another wait block and place it between the two change y by blocks.

Click the block stack.

The sprite bounces but too slowly.

Change the values in the wait blocks to a smaller number, like 0.1.

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.

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

(popping)

After you choose a sound, return to the code 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 drop-down menu to the sound you added.

Click the block stack.

(popping)

The sprite bounces and plays the 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.

(popping)

The sprite bounces and plays the 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.

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.

Add a when this sprite clicked event.

Once you've finished these steps, return to this page to select another video.

(playful music)

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.
Attributions
  • "NYSD - Pet Name" by techwonder21 (https://scratch.mit.edu/projects/226242085/editor) -- Licensed under CC BY-SA 2.0 (https://creativecommons.org/licenses/by-sa/2.0/)
  • Animate a Name is based off of the 'Animate Your Name' Scratch tutorial (http://scratch.mit.edu/name) developed by Scratch team at the MIT Media Lab. It was adapted and re-developed by Google in partnership with 4-H (http://4-h.org/), West Virginia University and Utah State University for National Youth Science Day 2018 (https://4-h.org/parents/national-youth-science-day/), 4-H's largest annual STEM challenge.
  • "4H_Emblem" by US Government (https://commons.wikimedia.org/wiki/File:4H_Emblem.svg) -- Licensed by CC0 Public Domain (https://creativecommons.org/share-your-work/public-domain/cc0/)
  • "NYSD - Adjective Name" by techwonder21 (https://scratch.mit.edu/projects/226481973/editor) -- Licensed under CC BY-SA 2.0 (https://creativecommons.org/licenses/by-sa/2.0/)