I have been trying to implement AI in one of my games where the enemy spots the player character in line of sight and tries to reach the character for a melee attack.
I have tried to implement this using the inbuilt AI pathfinder. But the movement of the AI towards the Player character is delayed or even buggy(moves to the wrong path or stops in the middle).
I suspect this problem is due to the ever moving target for the AI.
If anyone can help me to find an alternative to this or even make this work I would be very grateful.
Develop games in your browser. Powerful, performant & highly capable.
Do you have a capx example of the problem?