hi guys i have this problem with my enemy AI... see i have it that if the enemy is on screen it will attack...
but i dont want this.... i want my enemies to attack when the are at certain distance...so some can attack off-screen
but i have tried
for each enemy
compare: distance( player.x,player.y,enemy.x,enemy.y) < than 2500 pixels
then attack
but this does not seems to work...since the picking is incorrect..
can you awesome gurus of wisdom give me a hint??
thanks in advance!! n.n