Hello.
So I am setting the AI for my platformer enemies. My first type is working just fine (is a pretty simple patrol) but the new type I am working on is causing me some trouble.
So whenever the enemy has on sight the player I have set the range and the cone of view to 90, so is just sees forward. Then I have set some instance variables whenever if he has you on sight, he will shoot you.
Everything works fine expect one thing:
Lets call the enemy: Caster. So if Caster#1 has you on sight, doesn't matter if Caster#2 doesn't have you on sight because you ll see his proyectiles coming at you from somewhere outside the screen because the sight applies to the sprite. How can I overcome this?
Thanks