[DEV] Enemy detection feedback + bugfixing

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!


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s