Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_castlereflect_Draw_76

(view raw script w/o annotations or w/e)
1
if (!init)
2
    init = true;
3
if (instance_exists(obj_mainchara))
4
{
5
    if (specialdepth != -4)
6
        depth = specialdepth;
7
    else
8
        depth = 999990;
9
    y = ystart;
10
}
11
else if (floortex != -4)
12
{
13
    y = floortex.bbox_top + y_plat_offset;
14
    depth = floortex.depth - 1;
15
}