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.

Scratch15 min15 steps
Start buildingMore tutorials
Scratch Coding - Animate Your Sprite
Scratch Coding - Animate Your Sprite
15 minVibe coding
15 steps →

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

🧰Scratch account🧰Adult supervision required

Step by step

  1. 1

    Step 1

    Open your Scratch account and click "Create" to start a new project.

  2. 2

    Step 2

    Choose a sprite from the library or click the paintbrush to draw your own sprite.

  3. 3

    Step 3

    Click the Costumes tab and add or make at least two different costumes for your sprite.

  4. 4

    Step 4

    Click the Sounds tab and choose or record one sound for your sprite.

  5. 5

    Step 5

    Click the Code tab and drag the "when green flag clicked" block into the scripting area.

  6. 6

    Step 6

    Attach a "forever" block under the "when green flag clicked" block.

  7. 7

    Step 7

    Drag a "move 10 steps" block and place it inside the forever loop.

  8. 8

    Step 8

    Drag a "switch costume to next costume" block and place it inside the forever loop.

  9. 9

    Step 9

    Drag a "wait 0.2 seconds" block and place it inside the forever loop under the switch costume block.

  10. 10

    Step 10

    Drag a "when right arrow key pressed" block into the scripting area to add a control.

  11. 11

    Step 11

    Attach a "point in direction 90" block under the right-arrow key block.

  12. 12

    Step 12

    Attach a "move 10 steps" block under the point-in-direction block.

  13. 13

    Step 13

    Click the green flag to run your project.

  14. 14

    Step 14

    Ask an adult to press the right arrow key to test the control and give you feedback.

  15. 15

    Step 15

    Share your finished animation on DIY.org.

Fun facts

🐱The Scratch Cat is the default sprite you get in a new project — it's like your coding buddy!
🧩Scratch uses colorful, snap-together blocks so you can build programs without typing tricky code.
🎨Animations in Scratch are made by switching costumes quickly — it's basically a digital flipbook!
🎮You can program sprites to respond to keyboard keys, mouse clicks, or other sprites to make games and controls.
🌐Scratch has a global community where kids share and remix projects so everyone can learn from each other.
🐱The Scratch Cat is the default sprite you get in a new project — it's like your coding buddy!
🧩Scratch uses colorful, snap-together blocks so you can build programs without typing tricky code.
🎨Animations in Scratch are made by switching costumes quickly — it's basically a digital flipbook!
🎮You can program sprites to respond to keyboard keys, mouse clicks, or other sprites to make games and controls.
🌐Scratch has a global community where kids share and remix projects so everyone can learn from each other.

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.

Go deeper

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.

Go deeper

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.

Go deeper

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.

Go deeper

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.

Your first game is on us.

Describe a game below - no sign-up needed to try.

KidsGPT has moved to ChatDino — powered by AstroSafe

Make me

DIY.org

Kid-safe AI for discovery and learning. Ask anything, explore everything, learn with confidence.

Product

  • Pricing
  • App
  • All Apps

Resources

  • Blog
  • Kids Wikipedia
  • Worksheets
  • Activities for Kids
  • Build a Hacker Simulator
  • SafeTube

Company

  • About
  • Terms & Conditions
  • Privacy Policy
  • AstroSafe
TwitterInstagramYouTube

© 2026 DIY.org. All rights reserved. · Powered by AstroSafe