How i can implement a follow path object?

hello!
i’m wondering if i can implement something like " i draw a path to follow with my finger, then when game start the object follow that path" any advice?
thank’s in advance

I don’t understand, do you want to draw a path as game creator or as player?

hello!
thank’s you for your help!
actually i looking to draw a path as player, like

  1. draw a path
  2. click start
  3. play follow that path

I guess you need to record the path. Either create objects (visible or not) all along the way, either store X and Y in variables.
Then move the object to these objects or coordinates in order.
You will probably need to account for speed too, which will require using timers, I suppose.

This might be helpful for you

1 Like

Hi
I make top down car game side project and how make this without mouse, just object (AiCar) follow path? If just point to point where to go. I try ID, but little difficult to me understand. I use another way and that works, but wanna try another. Maybe find better AI this way.


This way i can do every corner own speed and angle. But need more try.

Sry. Maybe not correct post, but tutorial is good.