hit = false; var _scanx = obj_overworldheart.x + 10; var _scany = obj_overworldheart.y + 10; if (_scanx >= bbox_left && _scanx <= bbox_right && _scany >= bbox_top && _scany <= bbox_bottom) hit = true;