Hi everyone!
I'm pretty new at this, and I'm trying to make an enemy chase me when I get into his range.
I use physical obstacles to make the enemy patrol an area. This includes walls + an invisible object (named "EnemyTurnDirection") to make the enemy turn and walk the other way. Then I use Line of sight to detect the player (the yellow box) and start to move at double speed towards him.
Here's how it looks in the editor:
This sorta works, but there is one major problem. If the enemy has detected the player, and starts walking fast towards him, the enemy will ignore the physical obstacles, leading it away from its patrol area.
Could someone please look at my "script" and tell me what I'm doing wrong?
Thanks!