Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_grabbleObject_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 (grabcount == 1 && breakable == 1)
3
{
4
    if (extflag == "shell")
5
    {
6
        with (obj_b2quiz2)
7
            made = 2;
8
        debug_print("shell destroyed");
9
    }
10
    with (instance_create(x, y, obj_board_breakpoof))
11
    {
12
        depth = other.depth;
13
        if (other.extflag == "shell")
14
            image_blend = #9296FF;
15
    }
16
    snd_play(snd_break1);
17
    instance_destroy();
18
}