Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_camerablocker_Step_0

(view raw script w/o annotations or w/e)
1
scr_depth_board
scr_depth_board

function
scr_depth_board()
{ depth = 1000000 - ((y * 10) + ((sprite_height - sprite_yoffset) * 10)); } function scr_board_depth() {
scr_depth_board();
}
();
2
if (kris == 0)
3
{
4
    with (obj_mainchara_board)
5
    {
6
        if (name == "kris")
7
            other.kris = id;
8
    }
9
}
10
if (i_ex(kris))
11
{
12
    if (kris.camera == true)
13
        instance_destroy();
14
}
15
buffer--;
16
if (myinteract == 3)
17
{
18
    global.interact = 1;
19
    msgsetloc(0, 
YOU REQUIRE A CAMERA TO PROCEEDWait for inputClose Message
"YOU REQUIRE A CAMERA TO PROCEED/%", "obj_board_camerablocker_slash_Step_0_gml_15_0"
);
20
    bw_make();
21
    myinteract = 4;
22
}
23
if (myinteract == 4 && !bw_ex())
24
{
25
    global.interact = 0;
26
    myinteract = 0;
27
    buffer = 3;
28
}