Download

AI algorithms and decisions

Hi there!
I would like to know what are the commons approaches for designing AI which would allow the following cases

AI may use the direct path to the player - beside rectangle, to the stairs.
36f69d54f9d9227b381ef250904449c4452106e0.png

AI may decide to use rectangle and jump to the player
739368fd4ffa53d504a565162ac433cd5e72d9f3.png

AI may decide to run beside rectangle and then jump directly to the player

It is not neccessary means it should choose the shortest route.
As far as I understand it should be based on some pathfinding algorithms?

P.S. I have one idea in my mind but as usual it is overly complex and not very useful for games