if (destroyoffscreen == true) { if (!scr_onscreen_tolerance(id, tolerance)) instance_destroy(); }