if distance_to_object(host) <= 2 { instance_destroy(); } if instance_exists(target) { if target != 0 { x = target.x; y = target.y; } }