Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_hotland_roof_light_controller_Step_0

(view raw script w/o annotations or w/e)
1
if instance_exists(obj_player_npc)
2
    active_object = obj_player_npc
3
else
4
    active_object = obj_pl
5
if (active_object.x <= 308)
6
    overlay_draw_enabled = true
7
else
8
    overlay_draw_enabled = false
9
if (overlay_draw_enabled == true)
10
{
11
    if (overlay_draw_alpha < 1)
12
        overlay_draw_alpha += 0.05
13
}
14
else if (overlay_draw_alpha > 0)
15
    overlay_draw_alpha -= 0.05
16
depth = active_object.depth - 5