How to create entity with segmented legs.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Prof.Mudkip

I want to create an enemy with segmented legs that moves like a spider. It’s kind of similar to games that use separated balls to create a stretchy neck like the Queen Metroid from Metroid 2 or the Helmasaur King from A Link to The Past. It has a main body that moves around but its legs are segmented balls that glide around the floor. I’m fairly new to Godot and Am currently trying to switch over from Game Maker studio. Any help would be appreciated.Helmasuar King
an example I guess

Metroid Queen