I've recently implemented a very naive AI for enemies in the game I'm working on. Basically it consists of telling enemies to just move / jump / climb towards wherever the player is, and has the expected limitations - enemies don't know how to get around walls, etc. I'm pretty happy with it but keep thinking I can do something better. Have any of you implemented or have ideas regarding smarter AI solutions, path finding, or other tricks to make your actors "smart?"
One idea I had was to flood the open space with sensors that are linked to each other in a graph. If an enemy is in the same sensor-node as the player, it'll use the naive AI to move towards him. If not, then it'll find the shortest path through the graph and then use the naive AI to move towards the next node.
This is a totally new area to me, but pretty fun to think about.
One idea I had was to flood the open space with sensors that are linked to each other in a graph. If an enemy is in the same sensor-node as the player, it'll use the naive AI to move towards him. If not, then it'll find the shortest path through the graph and then use the naive AI to move towards the next node.
This is a totally new area to me, but pretty fun to think about.