How do you make an animation dance?

What is animation dancing?

The technique of moving rigidly and jerky by tensing muscles and using techniques similar to strobing and the robot makes it appear as if the dancer has been animated frame by frame. Walt Disney was the first to use this term, referring to his character Steam Boat Willie’s motions as “the animation dance” in 1929.

How do you make a dancing game on scratch?