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.
For a contact lasting at least two intervals, check a pose between your endpoints. Use the same canvas origin throughout.
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.
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