# How should an animated character be moved while repeating a walk cycle?

I created a walk cycle as an action, placed it in the NLA editor and repeated the cycle.

For each repetition the character jumps back to the starting position, what are some options to move the character forward? (The ending position should be starting position of the following repetition of the action).

Starting position:

Walking until last frame of action the same action should follow but the position jumps back to the origin. (Same as image 1 except current frame has advanced)

I also tried in the NLA editor (same effect as above):

For each cycle, make sure the support foot (one that's planted to the ground) moves back in linear speed. Use Set Keyframe Interpolation T > Linear for the support foot's first keyframe. You should also know the distance it moves back. Just Ctrl-drag (snap to increment) so the distance value is easy to reproduce, no need for guesswork.

Next, move the root bone, at the same distance, also in linear speed. Here's an example before moving the root bone, using David Rodriguez's Carmen rig (box moved linearly, standing in as the ground):

and after moving it [GIF] (box still as ground), and the animation's graph:

Support foot's position within the cycle represents how far the ground "moves". By moving it at linear speed, with known distance, it's easy to move the root bone in a way that will counter the support foot's.

# NLA-based Walkcycle

The workflow is also applicable for non-linear animation, with slight difference. Create a separate action data for root bone's animation, put it above the walkcycle track:

Though the walkcycle's action is the same, the root bone's need to be extrapolated linearly. For the root bone's action, execute Channel > Extrapolation Mode Shift-E, and select Linear Extrapolation. That way, the root bone's animation strip only needs to be scaled to match the walkcycle's, no matter how long is repeated.

• Thanks for the quick response. Why should the support foot (in mhx rig called master-floor) moved back and not forward? – stacker Nov 7 '13 at 10:38
• I don't know mhx rig, but master-floor sounds like the root bone, to me. The support foot is the foot that plants to the ground and supports body weight, in one half of a walkcycle. – Adhi Nov 7 '13 at 10:43
• think that when you animate a character moving you have to think that is as if you are seeing it with a camera attached to its root, so you see (and animate) the apparent movement of the foot going back but it will be still to the ground when you move the root forward. – PhoneixS Nov 7 '13 at 10:52