I'm playing with a pathfinding, I have a sprite "Soldier" and a "Player". For soldier I have a custom pathfinding where a path is made of sprite objects, named "wp", aligned to a 32x32 tile grid. Each "wp" has is own PV "id", it's a number 1,2,3... up to X. Where 1 is the node closest to the Soldier, on the path to the Player and X is closest node to the Player.
It works ok, only looks robotic. I've read in an article about A* pathfinding, that I could smooth the path to make it look more natural, with the line of sight. The method should be like:
node 1 has clear view to node 3 > delete node 2....
I added LOS behavior to the "wp", but I don't know how to differentiate each node, how to pick node 1 and node 3 etc.
edit>
I thought, I could add the cap
don't mind numbers on the map, they have no purpose yet.
and the problem is in the event 14
edit2>
I think, the problem with the link is, instead "&" symbol there is %26. I've changed it back to "&", if it still doesn't work, use one of the links below.
1
dl.dropbox.com/u/10457408/Construct/ENG_FORUM/Help%26Support/PathSmoothing/path.cap
2
dl.dropbox.com/u/10457408/Construct/ENG_FORUM/Help&Support/PathSmoothing/path.cap