To get stickman running, writing a subroutine that draws a posable stickman is only half the job. My stickman running animation has ten separate frames. Unless I want to manually pose stickman in each frame, I also need an animateStickman subroutine to calculate his poses for me.
This is how the animateStickman subroutine works: I create two poses—one for frame A and one for frame B—and then the subroutine calculates all of the in-between poses automatically and loops through them. Because the subroutine is essentially transforming the pose in frame A into the pose in frame B, this type of animation only works when stickman’s motion is smooth and periodic.