Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_lightsource_firebar_Step_0

(view raw script w/o annotations or w/e)
1
siner++;
2
smallerLight = (sin(siner / 30) * 5) + radius;
3
biggerLight = (sin((siner - 10) / 30) * 5) + radius + 10;
4
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();