There is a very good pathfinding plugin that was made by 00Rez. I really need this plugin for my tank AI because the AI has to dodge bullets and navigate a maze towards the player all at once. This is not possible with C2s current pathfinding system. I dont think 00Rez is still on this forum and refuses to respond to anyone on the forum asking him to update it. Can someone here please help to update it so that it supports tilemaps?viewtopic.php?t=68958&start=0

Last edited by austinblackbelt on Fri Jan 15, 2016 3:36 pm, edited 1 time in total.

I don't think a plugin could be made to understand a tilemap like that. Your image is vague but I guess the walls are on the edge of the tiles? No idea if you can do this with existing behaviors, but what you'd need to do is loop over all the tiles of the tilemap and build a mesh of movable area and then pass that to the behavior.

Or if the existing plugins can't do that, it's possible to do it with events.

R0J0hound wrote:I don't think a plugin could be made to understand a tilemap like that. Your image is vague but I guess the walls are on the edge of the tiles? No idea if you can do this with existing behaviors, but what you'd need to do is loop over all the tiles of the tilemap and build a mesh of movable area and then pass that to the behavior.

Or if the existing plugins can't do that, it's possible to do it with events.

Ashley wrote:Why can't the built-in pathfinding behavior do what you want? It could handle the kind of map you showed, providing you used a small enough cell size.

The reason I wanted to use the custom behavior is because I need the pathfinder to be able to calculate quickly when objects block the path, see my original message. Also, I need a rocket that can calculate a path quickly as its moving so that it can keep up with the player inside the maze.

Well, I was thinking of a complete event solution. I've done the astar algorithm many times before so it was pretty easy to get going with thin walls. It only works with one object and isn't setup to go as fast as possible so it may not be useful. In it the nodes collide with other nodes it's connected to.https://dl.dropboxusercontent.com/u/542 ... nwall.capx