DE EN FR ES IT

Engine & tech

Walk cycle

Also: foot sliding, stride sync

A walk cycle is the sequence of frames showing one complete stride, looping seamlessly while a character walks. To keep the feet from sliding across the ground, the animation has to match the distance actually covered.

Background

The walk cycle is a staple exercise of traditional animation: contact pose, down, passing, up, then the same with the other leg. Games use fewer frames, often four to twelve, depending on character size and style.

The real headache is foot sliding. If the animation plays at a fixed frame rate while the character moves faster or slower across the screen depending on depth, the feet visibly glide. It is especially noticeable in adventure games, where characters shrink as they walk into the distance.

The fix is coupling: the frame shown follows the distance travelled instead of elapsed time. At higher speed the character simply takes quicker steps instead of skating.

How we do it

In the Wurzelwerk engine the player character moves at walkSpeed times its current scale. If a sprite sheet defines walkStride, the distance of one full cycle at scale 1 as measured in Blender, the frame follows the distance travelled rather than the fps. Walking background characters work the same way.

When a scene with small characters feels sluggish, walkSpeedScale speeds up all walking there without any foot sliding. In Tatort RMH the outdoor scenes wendehammer and hammerfest use a factor of 1.7. Every character in Persona non grata has an 8-frame walk cycle with walkStride.

Related terms