Please note: This theme has not been updated to reflect Scratch 3.0. Visit this help article for more info.
Transcript

In this video, you will animate a row of letters to dance, spin, whatever you would like.

Later, you will apply this animation to a user's name.

To start, click the Letters sprite and the Costumes tab and select any letter.

This example uses the letter H.

The starter project contains a function block stack that will help solve a bug later in the program.

For now, put it aside.

Begin by animating a letter.

This example will make the letter grow, wiggle, and shrink.

To make the letter move like the one in the example, add a Change Size block and enter a number in the value space.

This example uses 5.

To make the block return to its original size, add another Change Size block and put a negative sign in front of the number you entered in the other block.

Click the block stack to test it out.

Nothing happens.

The code runs so fast you cannot see the letter grow and shrink.

To fix this, place a Wait block between the two Change Size blocks and adjust its value.

This example uses a value of 0.2 seconds.

Test the code again.

Great, the letter gets bigger, then returns to its original size.

To make the letter repeatedly change its size, select a Forever block and place it around your block stack.

Click the stack to test the code.

To slow down the size change, place another Wait block under the second Change Size block.

To make the letter wiggle back and forth, add a Turn Left block above the first Wait block and a Turn Right block above the second Wait block.

Tinker with the value in the Turn block to adjust how the sprite wiggles.

Use a smaller number to get a more subtle turning effect, or type in a large value to get a more extreme effect.

Click the block stack to try it out.

This example uses the value 3.

Great.

To make sure the letter starts in an upright position, add a Point in Direction 90 block to the top of the block stack.

Click the code to try it out one more time.

Awesome.

The letter starts upright, then turns and changes size continuously.

Feel free to add more or different animations to the letter using blocks from the Motion and Looks menus.

Later, you will apply this animation to a user's name.

Next, create clones of the letter sprite to animate a row of letters.

Add a Create Clone block to the Scripts area and a Repeat block around it.

Change the value in the Repeat block to 5.

Click the code stack to test.

The clones appear, but they are on top of each other.

To make the clones appear in a row, add a Change X block under the Create Clone block.

Change the value in the block to 50.

Click the flag, then the code stack to test.

Great.

Click Stop to clear the clones from the stage, then drag the letter to where you would like it to start.

Add a Go To block and a one-flag clicked event to the top of the code stack with the Repeat loop.

To animate the clones, add a When I Start as a Clone block to the top of the code stack with the Forever loop.

Test it out.

The last letter in the row doesn't animate because it's not a clone.

The clones animate but the original sprite does not.

To hide the original sprite and show only the clones, add a Hide block under the When Flag Clicked block and a Show block under the When I Start as a Clone block.

Finally, to make the letters change color as they move, as a Change Color effect block under the Change X block.

Click the flag to test.

That's cool.

Now it's your turn.

Program the letter sprite to start upright, then repeatedly dance, wiggle, or spin, using a Forever loop and blocks from the Motion and Looks menus.

Create clones that appear in a row.

Animate the clones using the When I Start as a Clone block.

Hide the original sprite and show only the clones.

Change the colors of the clones.

Instructions

  1. Program the letter sprite to start upright, then repeatedly dance, wiggle, or spin using a forever loop and blocks from the motion and looks menus.
  2. Create clones that appear in a row.
  3. Animate the clones using the "when I start as a clone" block.
  4. Hide the original sprite and show only the clones.
  5. Change the colors of the clones.