Snake following

So I’m making snake game. Unfortunately, I don’t know how to make segments of snake follow it’s head. Any tips?

Is it gonna be grid based movement(like restricting to tiles) or just a free flowing movement? I have an idea if the snake is gonna be restricted to moving to tiles.

No, it is freeform snake. I’m trying my luck with physics automatism and joints but since tail segemnt is same object I don’t know how I’m gonna get right segment connect to right one.

Using an ID object variable ?

Thought of that, but how I would make GD consider only two segment objects with specific ID variable?

I’ve found a solution, using two objects : (10.6 KB)

Wow that’s amazing! Thanks for this Victor! (Although I wasn’t the one asking, I’m sure this will come useful for future projects :smiley: )