Draw path for the ball

Hi, i find this little game and i want do it similar:

http://g.gratis-giochi.it/g.php?id=2198

Specifically what I would like to do is that the player drawing a line, and a ball follows the path that the player has drawn … I thought that you could do with the line renderer, but I can not think of any other ideas S:

Why not use the line renderer, as you suggested?

I don't know if is it the best way. Maybe there are better ways...

@penna91 maybe you should google it?

I have already google it and i'm not find anything about this... S:

1 Answer

1

Make an array of points containing the start and end points of each line drawn. Make the ball iterate through the points by going to one and then the other etc.