Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_npc_puzzlemaster2_Create_0

(view raw script w/o annotations or w/e)
1
myinteract = 0;
2
talked = 0;
3
image_speed = 0;
4
image_xscale = 2;
5
image_yscale = 2;
6
con = 0;
7
scr_depth
scr_depth

function
scr_depth()
{ depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
8
image_speed = 0;
9
type = 0;
10
siner = 0;
11
active = 0;
12
emotion = 0;
13
beanie[0] = 0;
14
beanie[1] = 0;
15
beanie[2] = 0;
16
if (global.chapter == 1)
17
{
18
    if (x < 350)
19
    {
20
        beanie[1] = 0;
21
        beanie[0] = 1;
22
        type = 1;
23
    }
24
    if (x < 250)
25
    {
26
        beanie[0] = 1;
27
        beanie[2] = 1;
28
        type = 2;
29
    }
30
    if (x < 150)
31
    {
32
        beanie[0] = 1;
33
        beanie[1] = 1;
34
        beanie[2] = 1;
35
        type = 3;
36
    }
37
}
38
if (global.chapter == 2 && room == room_dw_castle_dojo)
39
{
40
    beanie[1] = 0;
41
    beanie[0] = 1;
42
    type = 0;
43
}