How i can immplement a follow path object?


#1

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


#2

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


#3

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

#4

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.