Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_ch2_scene10_Create_0

(view raw script w/o annotations or w/e)
1
con = 0;
2
customcon = 0;
3
morphDone = 0;
4
specialDraw = 0;
5
glowValue = 0;
6
specialTimer = 0;
7
bgAlpha = 0;
8
explosiontimer = 0;
9
kr_x_save = x;
10
kr_y_save = y;
11
su_x_save = x;
12
su_y_save = y;
13
ra_x_save = x;
14
ra_y_save = y;
15
if (global.chapter != 2)
16
    instance_destroy();
17
if (global.chapter == 2)
18
{
19
    pause_music = false;
20
    if (global.plot >= 55)
21
    {
22
        con = -1;
23
        instance_create(458, 127, obj_savepoint);
24
        pb_marker = instance_create(290, 145, obj_marker);
25
        pb_marker.image_yscale = 2;
26
        pb_marker.image_xscale = 2;
27
        pb_marker.sprite_index = spr_cutscene_10_platter_bottom;
28
        if (global.plot < 65)
29
        {
30
            ar_npc = instance_create(325, 200, obj_npc_sign);
31
            ar_npc.sprite_index = spr_cutscene_10_arcade_rubble;
32
            ar_npc.depthbonus = 2000;
33
            ar_npc.image_yscale = 2;
34
            ar_npc.image_xscale = 2;
35
            ar_npc.depth = 95000;
36
            pb_marker.depth = ar_npc.depth + 5000;
37
        }
38
        else
39
        {
40
            with (pb_marker)
41
                
scr_depth
scr_depth

function
scr_depth()
{ depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
42
        }
43
        sw_npc = instance_create(300, 110, obj_npc_room_animated);
44
        sw_npc.sprite_index = spr_npc_swatchling_sweep;
45
        sw_npc.image_speed = 0.1;
46
        with (sw_npc)
47
            
scr_depth
scr_depth

function
scr_depth()
{ depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
48
        instance_destroy();
49
    }
50
}