To create more player feedback the enemies have been given images for when they detect you and when they lose sight of you.
A red explanationmark for when detected and a yellow question mark for when lost.
Together with developer Nick we fixed some bugs who were causing trouble with the player detection system.
The enemy would suddenly lose sight of the player, even when the player was just in front of him. This bug was caused by the projectile the enemy fired blocking the raycast. This was fixed by using a layermask and so ignoring the projectile.
The melee attack now performs the entire animation before checking if another attack can be done, this fixed a bug where you could run away before the attack was completed.
A special thanks to developer Nick for helping with these fixes!