Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_dunes_7_controller_Create_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
if (instance_number(obj_dunes_7_controller) > 1)
4
{
5
    instance_destroy()
6
    return;
7
}
8
if (obj_pl.y > 240)
9
{
10
    shift_layers = 0
11
    if (global.dunes_flag[2] == 0)
12
        obj_sandstorm_controller.storm_y_start = 360
13
}
14
else
15
{
16
    shift_layers = 1
17
    if (global.dunes_flag[2] == 0)
18
        obj_sandstorm_controller.storm_y_start = 170
19
}