Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_heartlight_beam_Step_0

(view raw script w/o annotations or w/e)
1
width = 
scr_approach_curve
scr_approach_curve

function
scr_approach_curve(arg0, arg1, arg2, arg3 = 0.1)
{ return
scr_approach(arg0, arg1, max(arg3, abs(arg1 - arg0) / arg2));
}
(width, 0, 60 - ceil(length / 8.5), 0.1);
2
length = 
scr_approach_curve
scr_approach_curve

function
scr_approach_curve(arg0, arg1, arg2, arg3 = 0.1)
{ return
scr_approach(arg0, arg1, max(arg3, abs(arg1 - arg0) / arg2));
}
(length, 500, 18 - ceil(length / 50), 1);
3
if (width < 0.15)
4
    instance_destroy();