Ladi_Pix3l
Member
I'm using this code...
to basically have my enemy activate with in range but I only want it to activate if the player is below the enemy.
I tried adding a variable to the y1 but my guess that it won't work to my advantage. I want the enemy to activate no matter how far below the player is from the enemy.
Is there someway I can do this? I guess checking between 2 points would be my option, but how?
Code:
if (point_distance(x,y,oPlayerParent.x,oPlayerParent.y) < 30)
{
//Do something
}
I tried adding a variable to the y1 but my guess that it won't work to my advantage. I want the enemy to activate no matter how far below the player is from the enemy.
Is there someway I can do this? I guess checking between 2 points would be my option, but how?