What would be a good way to setup a grid based AI? . Similar to old first person cRPG’s or Legend of Grimrock. I want the AI to also follow a grid system and to move by it, never cutting corners. Basically only 90 degree turns allowed. Just how tricky would it be to do?
As an extra question, how difficult would it be to expand the system to use turns?
1 Like
Hi
The included movement scripts do not stick exactly to the path however you can use this script instead http://pastebin.com/DvjRLQLV
Set the grid graph’s Neighbours setting to Four to disallow diagonal movement.
This system should not handle turns at all. It gives you back a path from one point to another, how you follow that (maybe over multiple turns) is up to the movement script.