Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_mansion_door_Create_0

(view raw script w/o annotations or w/e)
1
image_speed = 0;
2
scr_depth
scr_depth

function
scr_depth()
{ depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
3
if (door_type == 0)
4
{
5
    sprite_index = spr_dw_mansion_door_closed;
6
    image_xscale = 1;
7
    image_yscale = 1;
8
}
9
if (door_type == 1)
10
{
11
    sprite_index = spr_dw_mansion_door_open;
12
    image_xscale = 2;
13
    image_yscale = 2;
14
}
15
if (door_type == 2)
16
{
17
    sprite_index = spr_dw_mansion_door_wall;
18
    image_xscale = 1;
19
    image_yscale = 1;
20
}