Sorry I'm asking for a lot of (probably obvious) alternatives but does anyone have an idea of an alternate for distance_to_object.
In the enemy's step event:
if distance_to_object(player)<200 then if can_shoot = true Checks every step to see if "enemy" is within 200 pixels from "player", then checks to see if it can fire, then it commences fire.
-Thanks
|