Costumes and Backdrops
π¨π± Technique Card: Scratch Costumes and Backdrops (practical)
Make your sprites and scenes come to life!
π§ What Youβll Learn
- How to switch costumes to animate a sprite
- How to change the backdrop to set the scene
- Where to find and edit costumes and backdrops
- Simple code blocks that let you control them
π Costumes: Different Looks for a Sprite
Every sprite can have multiple costumes β these are like different outfits or poses.
Tip
Think of the sprite as being the actor - only one - who can wear many different costumes to look different
π§± Code blocks to use:
switch costume to [costume2]
next costume
π Try it:
- Click on your sprite.
- Go to the Costumes tab.
- Add a new costume (draw one, upload, or choose from the library).
- Use this code to switch:
π This loops through costumes, making the sprite look like itβs moving or whatever else you have created with your costumes.
π¨ Backdrops: Different Scenes for the Stage
The stage can have multiple backdrops β perfect for changing scenes in a story or game.
π§± Code blocks to use:
switch backdrop to [backdrop2]
next backdrop
when backdrop switches to [backdrop2]
(event)
π Try it:
- Click on the Stage in the sprite list.
- Go to the Backdrops tab.
- Add backdrops (from library or upload your own).
- Use this code to switch:
π This changes your scene instantly when the space key is pressed and moves to each next backdrop when the right arrow key is pressed.
π‘ Tips for Success
- Use costumes for sprite animations (like walking, blinking, changing mood).
- Use backdrops to move between levels or story chapters.
- You can also use the "when backdrop switches to" block to trigger new events in a story or game.
π― Try These Mini Challenges!
Put your costume and backdrop skills to the test with these fun, focused tasks:
π Challenge 1: Walking Animation
Make a sprite appear to walk across the screen by switching between two or more costumes.
π Hint: Move the sprite and use next costume
with a wait
block.
π Challenge 2: Day and Night Scene
Switch between two backdrops: one for daytime, one for night.
When you click the green flag, it should change every few seconds.
π Hint: Add a βsunny fieldβ and a βnight skyβ backdrop from the library.
π Challenge 3: Costume Switch with Key Press
Make a sprite change costume when you press the space key.
π Hint: Use the when space key pressed
block with next costume
.
π¬ Challenge 4: Story Scene Switcher
Create a short story with 3 backdrops. When the green flag is clicked, the backdrop should change every 2 seconds to move through the story.
π Hint: Use switch backdrop to
blocks with wait
commands between them.