Hello everyone
I looked around for the answer to this but couldn't find one, maybe one of you guys can help.
So here's the dilemma. I want my enemy AI to shoot at my player when the player is directly in front of the enemy, on the X axis only and only when the player is in front not behind and keep shooting inside the range. I don't know if that makes sense.
So say the enemy firing range is 300, so it would go: if player.X<300 of enemy.X {keepshooting} and only in front of where the enemy is facing. Hope that makes sense, and I know that it seems so simple and it probably is but for the life of me I cannot put the logic together. Thanks in advance.