So, I want to make a enemy AI for my platformer, and want the green goblin (enemy) to shoot when spiderman (player) comes in range. But I dont want him to shoot through the walls though, so shoot him when he "sees" him, basically a fog of war.
Edit: also, i want the green goblin to patrol a given area, how do I do that?
Any help is helpful, thanks