Hello everyone, I have a new issue while making my game, I hope you can help me.
The issue now is that I made a little enemy AI, such as when the player is close to certain weak enemy, the enemy will try to run away from the player when the player is close to it a certain distance. When the player is outside this range if distance, the enemy will only look at the position of the player (if the player is too far to the left of the enemy, the enemy will look only to the left; if the player is too far to the right, the enemy will look to the right).
And it works! HOWEVER, only for the first instance OR the remaining instance of such enemy, if there are 2 enemies of the same only the first one will work well, the second one doesnt seem to be using this AI effectively, it runs from the player when it comes from the left, but when it comes from the right doesnt move! and neither does it look at the player direction.
Any ideas how to solve this? See the pic below to see the event sheet I have for this.
<img src="http://i47.tinypic.com/sxd7df.png" border="0" />