How would one code walking animation like this in 2D?

JFAQuH
lkPUF6

how would one code walking movement like this in godot 4, and in 2D? i managed to make stacked sprites and i’d like to give them this little wobbly animation to go with it.

credits for gifs: Sokpop Collective

Usually this is done with inverse kinematics (IK). For 2D look into the Skeleton2D docs. There aren’t a lot of tutorials for this in 2D sadly. It’s used in 3D often though.

rip i figured it was IK, but i hoped there was going to be some other way to do it :frowning: