ikonhero
Member
Hi,
I followed this tutorial on AI pathfinding:
It works quite well. The only thing I can't seem to figure out is how to implement doors into my maze.
I use the pathfinding for player movement through the room, but I also tried using it to go to the door and open it, but since a closed door is added to the list of objects to avoid it makes it impossible for the player to create a path to the closed door (as the doors coordinates are inside a blocked area; the closed door).
I was wondering if there is any good information available on this. I tried searching for a tutorial but couldn't find anything useful.
I basically want the AI to avoid a closed door, but be able to go to the closed door and open it (when asked). I tried something with adding positioning objects to each door, but this gets complicated as a door should be openable from both sides, and one side may be reachable but the other not, etc.
Example of room:[URL=http://www.imagebam.com/image/8d131d547213781] [/URL]
Is there a way for doors to be avoided but be reachable in another way for opening, or in what direction should I be going with this?
Any help would be much appreciated!
Thank you.
I followed this tutorial on AI pathfinding:
It works quite well. The only thing I can't seem to figure out is how to implement doors into my maze.
I use the pathfinding for player movement through the room, but I also tried using it to go to the door and open it, but since a closed door is added to the list of objects to avoid it makes it impossible for the player to create a path to the closed door (as the doors coordinates are inside a blocked area; the closed door).
I was wondering if there is any good information available on this. I tried searching for a tutorial but couldn't find anything useful.
I basically want the AI to avoid a closed door, but be able to go to the closed door and open it (when asked). I tried something with adding positioning objects to each door, but this gets complicated as a door should be openable from both sides, and one side may be reachable but the other not, etc.
Example of room:[URL=http://www.imagebam.com/image/8d131d547213781] [/URL]
Is there a way for doors to be avoided but be reachable in another way for opening, or in what direction should I be going with this?
Any help would be much appreciated!
Thank you.