Code a Dance Routine

Use block coding like Scratch to design and program a short animated dance routine with coordinated moves, timing, and simple sound effects.

Scratch30 min15 steps
Start buildingMore tutorials
Code a Dance Routine
Code a Dance Routine
30 minVibe coding
15 steps β†’

About this tutorial

Use block coding like Scratch to design and program a short animated dance routine with coordinated moves, timing, and simple sound effects.

What you need

🧱Scratch account or offline block-coding editor🧰1-2 sprites built-in or drawn🧰backdrop built-in or drawn🧰simple sound effects built-in or uploaded✏️notebook and pencil

Step by step

  1. 1

    Step 1

    Pick a dance theme and how long the routine will be and write it in your notebook.

  2. 2

    Step 2

    Open your block-coding editor (like Scratch).

  3. 3

    Step 3

    Create a new project in the editor.

  4. 4

    Step 4

    Choose or draw your main sprite (character).

  5. 5

    Step 5

    Choose or draw a backdrop for the dance stage.

  6. 6

    Step 6

    Plan 4 to 8 dance moves and how many seconds each move will last and write them down.

  7. 7

    Step 7

    Drag motion blocks to program the first dance move for your sprite.

  8. 8

    Step 8

    Add a wait block right after the move to set its timing.

  9. 9

    Step 9

    Use look or costume blocks to make poses or visual changes for dance steps.

  10. 10

    Step 10

    Add a sound block to play a short sound effect at the right moment.

  11. 11

    Step 11

    If you have a second sprite, use broadcast blocks to make both sprites start moves at the same time.

  12. 12

    Step 12

    Click the green flag to test your dance routine.

  13. 13

    Step 13

    Adjust move amounts and wait times to improve coordination and test again.

  14. 14

    Step 14

    Add a loop block if you want the routine to repeat automatically.

  15. 15

    Step 15

    Share your finished dance routine on DIY.org

Fun facts

🐱Scratch was created at the MIT Media Lab and first launched for kids in 2007.
🧩Visual programming uses snap-together blocks so beginners can build logic like fitting puzzle pieces together.
πŸ’ƒChoreographers often count music in groups of eight beats, which makes planning dance moves easier.
⏱️Tiny timing tweaks (like adding short wait blocks) can turn a robotic move into a smooth dance step.
🎡Syncing moves to a song's beats per minute (BPM) makes your routine feel perfectly in time.
🐱Scratch was created at the MIT Media Lab and first launched for kids in 2007.
🧩Visual programming uses snap-together blocks so beginners can build logic like fitting puzzle pieces together.
πŸ’ƒChoreographers often count music in groups of eight beats, which makes planning dance moves easier.
⏱️Tiny timing tweaks (like adding short wait blocks) can turn a robotic move into a smooth dance step.
🎡Syncing moves to a song's beats per minute (BPM) makes your routine feel perfectly in time.

How do I code a dance routine using block coding like Scratch?

To code a dance routine in Scratch, start a new project and pick one or more sprites and a backdrop. Plan moves on paper, then use motion blocks (move, glide, turn) and looks (switch costume, next costume) to animate steps. Add timing with wait blocks and repeat loops for patterns. Use sound blocks and broadcast messages to sync multiple sprites. Test, adjust timing and costume changes, then save and share the finished routine.

Go deeper

What materials and tools do I need to code a dance routine in Scratch?

You'll need a computer or tablet that runs the Scratch website or app, a mouse or trackpad, and stable internet for the online editor. Optional items: headphones or speakers for sounds, a simple storyboard or printed grid to plan choreography, colored pencils for notes, and a Scratch account to save projects. For group settings, a projector or big screen helps show routines to the class or family.

Go deeper

What ages is coding a dance routine in Scratch suitable for?

This activity suits roughly ages 6–16. Younger children (6–8) can build simple step sequences and costume changes with adult guidance. Ages 9–12 can handle timing, loops, and syncing multiple sprites independently. Teens (13–16+) can add variables, clones, and more complex sound editing. Adjust session length and complexity to the child's attention span and experience; younger kids benefit from shorter projects and hands-on help.

Go deeper

What are the benefits of coding a dance routine for kids?

Coding a dance routine teaches sequencing, timing, and computational thinking while encouraging creativity and artistic expression. Kids practice problem-solving when synchronizing sprites, learn cause-and-effect through blocks, and develop basic rhythm and music awareness. The activity supports collaboration, builds digital confidence as children test and iterate, and improves attention and fine motor skills without requiring advanced typing or prior coding experience.

Go deeper

Watch & Learn

Need help?

What can we use if we don't have the block-coding editor (like Scratch) or internet access?

Use Scratch Desktop or ScratchJr on a tablet, try Code.org or Tynker offline activities, or write and rehearse the planned moves in your notebook and test them live if you can't open a block-coding editor.

My second sprite won't move at the same time as the firstβ€”what am I doing wrong?

Make sure the first sprite sends a broadcast block and the second sprite has a matching 'when I receive' script with the motion and wait blocks so both start their moves simultaneously.

How can I change the activity for different age groups?

For ages 4–6 use 2–4 big, simple moves written in the notebook and large motion/wait blocks; for 7–10 plan 4–8 moves with costume and sound blocks; for 11+ add broadcasts, loops, custom sprites, and variables to control timing.

How can we extend or personalize the dance routine after the basic version is working?

Add backdrop changes and costume swaps using look/backdrop blocks, layer longer sound clips or repeated sound blocks inside loop blocks, sync multiple sprites with broadcasts, and then share the polished routine 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