Disallowing blocking off the path

Hi All,

I’m making a turret defense for college with a group and this pathfinding project has been a great help. I do have a question. I’m allowing players to place boxes on a grid to change the path of the enemies and allow the players to create choke points and other ideas. However, I haven’t found a way to not allow them to completely block the path to the enemy’s target.

It uses a similar grid placement system as Sanctum.

I’m open to any suggestions. Ideally, I’d want the player to know that the next box they will place will block the path.


See this thread: http://www.arongranberg.com/vanillaforums/discussion/comment/153/#Comment_153