ok… so basically, i need some help with the AI for a basic top-view shooter game… if the player is “behind” a wall, and the AI can’t “see” them, then the AI should not shoot / go towards the player. However, if the AI can “see” the player, or if the player is not “behind” a wall, then the AI should start shooting / go towards the player…
It’s easy to make an AI for an “open space” shooter game… you just need to use some trigonometry and you can already come up with something. You can make the enemy fire bullets to the player, rotate to face the location of the player, follow the player, etc… However, when the game starts to involve some walls, I begin to become clueless… any help on this topic will be greatly appreciated!