Skip to content

Please update your browser

Your browser version is not supported by this site. CS First may not work properly. Learn more

Choose an Add-On
play_circle_filled
Place to Place
Use move blocks to add drama to the story
arrow_forward
play_circle_filled
Hear It Happen
Create custom sounds to play randomly with the glitch
arrow_forward
play_circle_filled
Even Glitchier
Make the glitch effect your backdrop
arrow_forward
play_circle_filled
Make Them Jump
Program your characters to move with arrow keys
arrow_forward
play_circle_filled
GIF for your Glitch
Upload a GIF and animate it to change your story
arrow_forward
play_circle_filled
Say Something
Use blocks to change your Sprite's appearance
arrow_forward
  • 1. Introduction
  • 2. Foreshadow the Glitch with Dialogue
  • 3. The Glitch and a Response
  • 4. Create a New Scene
  • 5. Reuse the Glitch
  • 6. Conclude the Story
  • 7. Wrap-up: The Amazing World of Gumball
  • 8. Wrap-up: Share Your Project
  • 9. Wrap-up: Show Your Project
arrow_backward Back Next arrow_forward
Transcript

To give your sprites more personality, program them to show different emotions based on the scene.

In this video, you will use blocks from the Looks menu to change your sprite’s appearance.

In Scratch, a sprite’s appearance is called a “costume.”

Click the costumes tab to see the different options.

Click each costume.

The sprite’s appearance changes.

Pretty cool!

Clicking the sprite’s costume every time you want to change its appearance could get tiring, though.

Luckily, Scratch allows you to automate this process and save time by dragging out a few blocks.

In this example, the code makes Carmen’s facial expressions change when she talks to Molly and reacts to the glitch.

You will program an animation that makes sense for your project.

To start, select a sprite to animate.

Then, click the Scripts tab.

Program your sprite to change costumes using blocks from the “looks” menu.

Click the “switch costume to” block to see what happens.

Carmen changes costume.

This is the block you will use to make your sprite change facial expressions.

Drag out several “switch costume to” blocks from the Looks menu, and snap them together.

Click to test.

The sprite’s expression does not change because all three blocks specify the same costume.

Click the dropdown menus to select more costumes.

This example uses Carmen1, Carmen2, and Carmen3.

Click the block stack to test again.

Oh no!

The costume change happens so fast, you can’t see it.

To fix this, place “wait” blocks from the Control menu between the “switch costume to” blocks.

Next, program the sprite’s costume changes to happen at the right time in your project.

From the “events” menu, drag out a block that runs the code at a specific time.

This example uses a “when backdrop switches to” block.

Attach it to the top of the block stack.

This block runs the code attached to it when the program switches to a specific backdrop.

This example chooses the backdrop “Hallway1” from the dropdown menu.

That way, the sprite’s costume change happens when the program switches to the “Hallway 1” backdrop.

Choose a backdrop from the dropdown menu, then click the green flag to test.

Great, the program works, but the sprite’s costume changes do not match what’s happening in the scene.

To fix this, tinker with the values in the “wait” blocks to make the costume changes happen at the right points in your story.

Click the green flag to test again.

The costume changes match the story.

Great job!

Animate additional characters by changing their appearances.

To do this, select the sprite, and use “switch costume to” and “wait” blocks.

Now it’s your turn… Select a character to animate.

Review the costumes for that character by clicking the Costumes tab.

Choose several costumes using “switch costume to” blocks.

Add “wait” blocks to sequence your story.

Specify when the code should run by using an Events block Finally, animate additional characters using “switch costume to” and “wait” blocks.

Instructions
Draw your story toward a conclusion using dialogue, scene changes, or new characters.