hit = false; var _scanx = obj_overworldheart.x + 10; var _scany = obj_overworldheart.y + 10; if (point_distance(x, y, _scanx, _scany) < (smallerLight / 2)) hit = true;