Make the child follow the same trajectory as the body ahead

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

So I want to make some kind of snake game but with multi directional movement which i do with rotation how can I make the tail follow the same trajectory as the body ahead and also have the same rotation at that point.

:bust_in_silhouette: Reply From: exuin

One way is to store the movements of the head in an array and have the tail copy the movement by iterating through the array.

do you have any example of how i can do this?

SlavJuan | 2021-07-06 14:55