- Home /
Drawing a random path?
Hello. I want to make character movement like this, where movement is restricted along a 2D pathway, where the pathway is not just a straight line. I know that this is fairly simple to do using iTween, but how can I make the path randomly generated (within some constraints, so that the path fits within the camera's viewing) and have the path be visable to the player and not just inside Unity? Thanks(
Comment
Best Answer
Answer by pixelplacement · Dec 23, 2010 at 02:30 AM
Have you seen this example yet?
neat - do you know if this random path can also be used as a collision path for multiple characters to walk on?
"Collision Path"? It's just a motion path so you can do anything you need with it.
Your answer
![](https://koobas.hobune.stream/wayback/20220613091842im_/https://answers.unity.com/themes/thub/images/avi.jpg)