I'm trying to find a way in which I can randomly generate units in one region and then get them to move in a straight line to another region. I have drawn a picture to show what I mean:
The problem is if your spawning the units randomly in Start Region, you can only tell them to do things like "move to the center" or "move to random point in region" etc etc
So they all walk from A to B but in random diagonals...
Hello,
I'm trying to find a way in which I can randomly generate units in one region and then get them to move in a straight line to another region. I have drawn a picture to show what I mean:
http://i52.tinypic.com/ka5ri1.jpg
The problem is if your spawning the units randomly in Start Region, you can only tell them to do things like "move to the center" or "move to random point in region" etc etc
So they all walk from A to B but in random diagonals...
Thanks for the help
@James7285: Go
In your case:
(lv_unit is your unit, lv_distance is how far you want it and lv_angle is the angle)
@malu05:
Thanks, I will give that a try