Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_ch2_scene13_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
customcon = 0;
3
explodetimer = 0;
4
wineglasscon = 0;
5
if (global.plot < 100)
6
{
7
    statuenpc = instance_create(1232, 30, obj_npc_sign);
8
    statuenpc.sprite_index = spr_cutscene_13_berdly_statue;
9
}
10
else
11
{
12
    swatchling_npc_a = instance_create(1232, 30, obj_npc_room_animated);
13
    with (swatchling_npc_a)
14
    {
15
        sprite_index = spr_npc_swatchling_sweep;
16
        scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
17
        image_speed = 0.1;
18
    }
19
    swatchling_npc_b = instance_create(1375, 110, obj_npc_room_animated);
20
    with (swatchling_npc_b)
21
    {
22
        sprite_index = spr_npc_swatchling_sweep;
23
        scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
24
        image_speed = 0.1;
25
    }
26
}
27
if (global.chapter != 2 || global.plot >= 75)
28
{
29
    instance_destroy();
30
}
31
else
32
{
33
    statuenpc.visible = 0;
34
    boxhead = scr_dark_marker
scr_dark_marker

function scr_dark_marker(arg0, arg1, arg2) { thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(0, 0, spr_cutscene_13_noelle_box);
35
    boxhead.visible = 0;
36
    glassexplosion = instance_create(0, 0, obj_marker);
37
    glassexplosion.sprite_index = spr_realisticexplosion;
38
    glassexplosion.visible = 0;
39
    noellebox = instance_create(970, 216, obj_marker);
40
    noellebox.sprite_index = spr_cutscene_13_noelle_box_walk_right;
41
    noellebox.visible = 0;
42
    noellebox.image_speed = 0;
43
    noellebox.image_xscale = 2;
44
    noellebox.image_yscale = 2;
45
    with (noellebox)
46
        scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
47
    noellelost = false;
48
}