warrior doesn't find correct path
Posted: Fri Apr 18, 2014 6:55 pm
Simple example of my problem:
X | O
Warrior (X) wants to run to his target (O), but there is a wall in his way (|)
How I can make that the guy finds automatical his way to O, not only with 1 wall.
X|||||||||||||
......|||O ...||
|...||||.....||
|.............||
|||||||||||||
... == floor, " " doesn't work
My idea was something like WarCraft, the warriors run to the target and took the shortest way.
It have to work fast, because of 100 or more warriors.
Thanks!
X | O
Warrior (X) wants to run to his target (O), but there is a wall in his way (|)
How I can make that the guy finds automatical his way to O, not only with 1 wall.
X|||||||||||||
......|||O ...||
|...||||.....||
|.............||
|||||||||||||
... == floor, " " doesn't work
My idea was something like WarCraft, the warriors run to the target and took the shortest way.
It have to work fast, because of 100 or more warriors.
Thanks!