Need Help In Making Procedural Animation Using Inverse Kinematics in a 2D project

Godot Version

4.2.2

Question

Hello dear developers! Do you know how to make realistic procedural walking using inverse kinematics in 2D project? Im need the animations for the legs, i need the foot to stick on the floor and the upper and lower leg to rotate with the foot. I already tried to make it with using inverse kinematics target point, but i didnt figured how to make the target point relocate to move the feet dinamically when player is walking. Please! Any help!!!

I want to make the animations like in this video : https://www.youtube.com/watch?v=9jtQkxzD_io&t=28s&ab_channel=gameArtStuff
(The author didn’t gave any explanation)
or here:
https://www.youtube.com/shorts/lQjhZmG7mlY
(its Unity engine)