Walk cycle speed calculator: fix foot sliding in 2D sprites

If a planted heel moves 8 pixels backward across 2 frame intervals at 12 fps, move the sprite forward at 48 pixels per second. At 36 px/s the foot slides 2 pixels backward before it lifts.

The dashed line is a fixed floor mark. The top boot shows drift and the bottom boot stays planted. Playback is slowed and distance is magnified for inspection.

Test a middle pose or export your results

For a contact lasting at least two intervals, check a pose between your endpoints. Use the same canvas origin throughout.

Make a side-view walk in FrameSprite → Coming soon: image and animation sequence generation will each start at 5 credits (about $0.06 on the $59.99 / 5,000-credit plan). Check the current quote before generating. Pricing

Which frames do I measure?

Pick a side view with a fixed camera. Restore trimmed frames to their original canvas and align the pivots. Track the same point while it touches the floor. Frames 2, 3 and 4 give two intervals. Stop when the heel lifts or switches to a toe roll.

How do I use the result?

Speed = (start X − end X) × fps / intervals. Positive is right. Use source pixels for every input. At 32 source pixels per game unit, 48 px/s is 1.5 units/s. For uneven frame holds, divide displacement by actual elapsed seconds instead.

A zero result for drift only checks the endpoints. If the middle point is 31 instead of 34, the boot still slides 3 px back at the midpoint. Check each contact interval before changing movement code.

Next: lay out eight directions