Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_factory_03_controller_Create_0

(view raw script w/o annotations or w/e)
1
scene = 0;
2
cutscene_timer = 0;
3
cutscene_music = 0;
4
if (global.sworks_flag[37] == 0.5)
5
    scene = 11;
6
if (global.sworks_flag[37] > 0.5 && global.sworks_flag[37] < 3)
7
{
8
    scene = 49;
9
    instance_create_depth(0, 0, -100, obj_factory_03_minigame);
10
    instance_create_depth(370, 760, 0, obj_axis_npc);
11
    instance_create_depth(370, 760, -room_height, obj_factory_03_axis_flashlight);
12
    obj_factory_03_axis_flashlight.active = 1;
13
}
14
if (global.sworks_flag[37] == 3)
15
{
16
    instance_destroy(obj_factory_03_numpad);
17
    instance_destroy();
18
    layer_set_visible("door_visible", true);
19
    exit;
20
}