A Dance Animation
๐ฏ A character dances to a beat, changing costume in time with a drum.
๐ก The idea behind it
Animation is nothing more than changing the picture quickly. Timing is what makes it look alive.
๐งฑ Blocks you will need
forevernext costumewait 0.2 secondsplay drum 1 for 0.25 beatschange colour effect by 25
๐จ Build it
- Choose a sprite with several costumes โ the Cassy or Champ sprites have dance poses.
- Build: when flag clicked โ forever โ next costume โ wait 0.2 seconds.
- Run it. Then change 0.2 to 0.05 and to 1, and notice how completely the feel changes.
- Add a drum inside the same loop so the beat and the movement match.
- Add 'change colour effect by 25' for a disco floor.
๐ Make it harder
- Add a second dancer that moves on the opposite beat.
- Change the backdrop every eight beats using a counter.
๐ Bugs you will hit
- It flickers too fast to see: your wait is too short, or missing altogether.
- Only one costume shows: that sprite has only one costume โ pick a different sprite.
โฌ Need Scratch itself?
Free from MIT, in a browser or as an offline app that needs no connection at all.