Craig Davidson
Member
I am trying to create a multiplayer RTS game. I have already figured out how to have multiple players move units and have said units avoid other objects, like solid obstacles, yet now I would like to have the units arrange themselves in a formation or grid, once they reach their destination.
I use the variables "tx", and "ty" for the destination, yet I'd like to know how I can have the units automatically arrange themselves, possibly a simple AI of sorts, once they reach a set distance from the target x,y coordinates. If this can be solved with a simple script or AI, I would greatly appreciate it. If anyone can help me, it would be of a great help.
I use the variables "tx", and "ty" for the destination, yet I'd like to know how I can have the units automatically arrange themselves, possibly a simple AI of sorts, once they reach a set distance from the target x,y coordinates. If this can be solved with a simple script or AI, I would greatly appreciate it. If anyone can help me, it would be of a great help.