Hello again friends!
I need a little help with my game, I want to compare the distance of each enemy to the player, then when this distance it's less a X value, the enemy will attack.
I dont know why, but just one enemy attack even if I'm close of BOTH enemies. The strange thing it's BOTH enemy change it animation to attacking, but just one really pick the object invisble and use it.
The strange thing is: I have used the same code to another enemy and it's working 100%....
Just move the green Player close the enemies using keyboard 8 directions....
PS: I'm avoiding to uses loops and foreach loops because performance issues in android.
Can you help me out?