Deltarune script viewer

← back to main script listing

gml_Object_obj_dw_transition_line_Step_0

(view raw script w/o annotations or w/e)
1
if (y >= 400)
2
    instance_destroy();
3
if (!scr_onscreen_tolerance
scr_onscreen_tolerance

function scr_onscreen_tolerance(arg0, arg1) { obj = arg0; spacer = arg1; if ((obj.x + obj.sprite_width + spacer) < camerax() || (obj.x - spacer) > (camerax() + 640) || (obj.y + obj.sprite_height + spacer) < cameray() || (obj.y - spacer) > (cameray() + 480)) return false; else return true; }
(id, 400))
4
    instance_destroy();