Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_heightfloor_darklight_Step_0

(view raw script w/o annotations or w/e)
1
lit = 0;
2
if (place_meeting(x, y + 80, obj_dw_church_shelflightarea))
3
    lit = 1;
4
if (lit == 1)
5
    highlight = lerp(highlight, 1, 0.5);
6
else
7
    highlight = lerp(highlight, 0, 0.5);
8
if (lit == 0)
9
{
10
    if (type == 0)
11
        floorheight = 999;
12
    if (type == 1)
13
        floorheight = 1;
14
}
15
if (lit == 1)
16
{
17
    if (type == 1)
18
        floorheight = 999;
19
    if (type == 0)
20
        floorheight = 1;
21
}