Deltarune script viewer

← back to main script listing

gml_Object_obj_musicer_cyber_Create_0

(view raw script w/o annotations or w/e)
1
if (global.plot >= 55)
2
{
3
    if (room == room_dw_cyber_queen_boxing)
4
    {
5
        with (obj_doorA_musfade)
6
        {
7
            door = instance_create(x, y, obj_doorA);
8
            door.image_yscale = image_xscale;
9
            door.image_yscale = image_yscale;
10
            instance_destroy();
11
        }
12
    }
13
}
14
if (global.plot >= 60)
15
{
16
    if (room == room_dw_cyber_battle_maze_2)
17
    {
18
        with (obj_doorA_musfade)
19
        {
20
            door = instance_create(x, y, obj_doorA);
21
            door.image_yscale = image_xscale;
22
            door.image_yscale = image_yscale;
23
            instance_destroy();
24
        }
25
    }
26
}
27
if (!snd_is_playing(global.currentsong[1]))
28
{
29
    global.currentsong[0] = snd_init("cyber.ogg");
30
    global.currentsong[1] = mus_loop_ext(global.currentsong[0], 1, 1);
31
}