Scratch Coding - Animate Your Sprite
Use Scratch to design and animate a sprite with costumes, motion, and sound blocks while testing controls and sharing it with an adult.

About this tutorial
Use Scratch to design and animate a sprite with costumes, motion, and sound blocks while testing controls and sharing it with an adult.
What you need
Step by step
- 1
Step 1
Open your Scratch account and click "Create" to start a new project.
- 2
Step 2
Choose a sprite from the library or click the paintbrush to draw your own sprite.
- 3
Step 3
Click the Costumes tab and add or make at least two different costumes for your sprite.
- 4
Step 4
Click the Sounds tab and choose or record one sound for your sprite.
- 5
Step 5
Click the Code tab and drag the "when green flag clicked" block into the scripting area.
- 6
Step 6
Attach a "forever" block under the "when green flag clicked" block.
- 7
Step 7
Drag a "move 10 steps" block and place it inside the forever loop.
- 8
Step 8
Drag a "switch costume to next costume" block and place it inside the forever loop.
- 9
Step 9
Drag a "wait 0.2 seconds" block and place it inside the forever loop under the switch costume block.
- 10
Step 10
Drag a "when right arrow key pressed" block into the scripting area to add a control.
- 11
Step 11
Attach a "point in direction 90" block under the right-arrow key block.
- 12
Step 12
Attach a "move 10 steps" block under the point-in-direction block.
- 13
Step 13
Click the green flag to run your project.
- 14
Step 14
Ask an adult to press the right arrow key to test the control and give you feedback.
- 15
Step 15
Share your finished animation on DIY.org.
Fun facts
How do I use Scratch to design and animate a sprite step by step?
Start Scratch at scratch.mit.edu or in the offline editor. Create or pick a sprite, then add costumes for different poses. Use a 'when green flag clicked' event with motion blocks to move it, and use 'wait' plus costume-switch blocks to animate frames. Add sound blocks for effects and control blocks like 'repeat' or 'forever' to loop actions. Test often, tweak timing, save, and preview with an adult before sharing.
What materials and tools do I need to animate a sprite in Scratch?
You'll need a computer or tablet with internet access or the Scratch offline app; a free Scratch account if you want to save and share projects; and a mouse or touchscreen for dragging blocks. Optional items: headphones for sounds, paper and pencil to sketch ideas, and an adult to help manage account and privacy settings. No prior coding experience is required—just curiosity and time to experiment.
What ages is Scratch sprite animation suitable for?
Scratch works well for kids aged about 5 and up. Young children (5–7) enjoy simple costume changes and block dragging with adult help. Ages 8–11 can create animated stories and basic games independently. Teens (12+) can build more complex behaviors using loops, variables, and broadcasting. Always adapt tasks to the child’s attention span and offer guidance on sharing and online safety.
What safety tips should I follow when my child shares their Scratch project online?
Use a parent’s or supervised email to create the account and review privacy settings together. Remind children not to include real names, locations, or contact details in titles, descriptions, or sprites. Have an adult review content before using the Share feature, monitor or disable comments, and teach how to report or block inappropriate behavior. Encourage respectful interactions and check projects regularly.
Watch & Learn
Need help?
I don't have a microphone or can't find a good sprite—what can we use instead?
Use the Scratch sprite library or the paintbrush to draw a sprite and, in the Sounds tab, pick a built-in sound or upload an audio file instead of recording with a microphone.
My sprite isn't animating or costumes aren't switching—what did I miss?
Check that the 'when green flag clicked' block has a 'forever' block attached and that both 'switch costume to next costume' and 'wait 0.2 seconds' are placed inside that same loop on the sprite's Code tab before you click the green flag.
How can I adapt this project for younger or older kids?
For younger kids use just two costumes and increase the 'wait' to 0.5–1 second while keeping only the 'when green flag clicked' loop, and for older kids add 'play sound' blocks, extra arrow-key handlers, variables, or backdrop changes from the Backdrops tab.
How can we make the animation more unique or interactive?
Personalize it by drawing extra costumes with the paintbrush, adding 'play sound [sound]' from the Sounds tab inside the forever loop or under 'when right arrow key pressed', and include 'if on edge, bounce' or backdrop changes to match the animation before sharing on DIY.org.