Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_bookshelf_destructable_Create_0

(view raw script w/o annotations or w/e)
1
if (special == 3)
2
    sprite_index = spr_musicgate_breakable;
3
if (special > 0 && special <= 2)
4
{
5
    mysolid = instance_create(x, y + 80, obj_marker);
6
    mysolid.image_xscale = 2;
7
    mysolid.image_yscale = 2;
8
    if (special == 2)
9
        sprite_index = spr_dw_church_shelfpuz_2x2ladder;
10
}
11
else
12
{
13
    mysolid = instance_create(x, y + 80, obj_solidblocksized);
14
}
15
mysolid.extflag = "breakable";
16
scr_size
scr_size

function
scr_size(arg0 = image_xscale, arg1 = image_yscale, arg2 = id)
{ with (arg2) { image_xscale = arg0; image_yscale = arg1; } }
(2, 2, mysolid);
17
init = 0;
18
scr_size
scr_size

function
scr_size(arg0 = image_xscale, arg1 = image_yscale, arg2 = id)
{ with (arg2) { image_xscale = arg0; image_yscale = arg1; } }
(2, 2);
19
image_blend = c_white;
20
image_alpha = 1;
21
if (special == 0)
22
    
scr_depth_alt
scr_depth_alt

function
scr_depth_alt(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + ((sprite_height - sprite_yoffset) * 10) + (arg1 * 10)); }
();
23
else
24
    depth = 999999;
25
con = 0;
26
alpha = 0;
27
active = 0;
28
image_speed = 0;
29
siner = 0;