Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_ch2_room_mansion_kitchen_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
for (var i = 0; i < 26; i++)
3
{
4
    var timer_sprite = ((i % 3) == 1) ? bg_dw_mansion_kitchen_timer_blink : bg_dw_mansion_kitchen_timer;
5
    var timer = scr_marker
scr_marker

function scr_marker(arg0, arg1, arg2) { thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(120 + (i * 40), 40, timer_sprite);
6
    timer.image_speed = 0.1;
7
    timer.depth = 900000;
8
}
9
swatchling_npc_a = instance_create(790, 93, obj_npc_swatchling_scared);
10
with (swatchling_npc_a)
11
{
12
    scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
13
    sprite_index = (global.flag[362 mauswheel_defeated] == 0) ? spr_npc_swatchling_scared : spr_npc_swatchling_down;
14
    image_speed = 0.25;
15
    current_pal = yellow;
16
}
17
swatchling_npc_b = instance_create(550, 150, obj_npc_swatchling_scared);
18
with (swatchling_npc_b)
19
{
20
    scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
21
    sprite_index = spr_npc_swatchling_scared;
22
    image_speed = 0.25;
23
}
24
swatchling_npc_c = instance_create(675, 4, obj_npc_swatchling_scared);
25
with (swatchling_npc_c)
26
{
27
    scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
28
    sprite_index = spr_npc_swatchling_scared;
29
    current_pal = red;
30
    image_speed = 0.25;
31
}
32
cheese_a = 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; }
(15, 150, spr_mazecheese);
33
with (cheese_a)
34
{
35
    image_index = global.flag[362 mauswheel_defeated];
36
    scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
37
}
38
cheese_b = 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; }
(55, 210, spr_mazecheese);
39
with (cheese_b)
40
{
41
    image_index = global.flag[362 mauswheel_defeated];
42
    scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
43
}
44
cheese_c = 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; }
(15, 260, spr_mazecheese);
45
with (cheese_c)
46
{
47
    image_index = global.flag[362 mauswheel_defeated];
48
    scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
49
}
50
if (global.flag[362 mauswheel_defeated] == 0)
51
{
52
    mouse_a = 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; }
(50, cheese_a.y, spr_maus_idle);
53
    with (mouse_a)
54
        image_speed = 0.25;
55
    mouse_a.depth = cheese_a.depth - 10;
56
    mouse_b = 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; }
(90, cheese_b.y, spr_maus_idle);
57
    with (mouse_b)
58
        image_speed = 0.25;
59
    mouse_b.depth = cheese_b.depth - 10;
60
    mouse_c = 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; }
(50, cheese_c.y, spr_maus_idle);
61
    with (mouse_c)
62
        image_speed = 0.25;
63
    mouse_c.depth = cheese_c.depth - 10;
64
    whiteall = scr_marker
scr_marker

function scr_marker(arg0, arg1, arg2) { thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(-10, -10, spr_pixel_white);
65
    whiteall.image_xscale = 999;
66
    whiteall.image_yscale = 999;
67
    whiteall.depth = 0;
68
    whiteall.image_alpha = 0;
69
    fade_timer = 0;
70
    mauswheel = -4;
71
}