How do i make it so that the object follows the object

plz help me with that

Take note of object A positions (for example by adding to a list his X,Y)
After a set amount of time make object B move towards previous object A positions.
Delete reached positions from list.

i do not understand anything

the last time i did this was in c# in unity but ill try to simplify here.

basicaly you find the objects position. ill do it on the x axis.
then you find if it is > or < than the other objects position on the x axis.
if it is, then it moves in that direction.

ill try to make a example project later.

Try this! (move with a and d)

My Project5-19-2021_10-27-32.wick (1.9 KB)

1 Like