Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_dw_churchc_angelprophecy_encounter_Other_11

(view raw script w/o annotations or w/e)
1
if (!i_ex(doorsolid))
2
{
3
    var door = scr_genmarker("doorsolid");
4
    doorsolid = instance_create(door.x, door.y, obj_solidblock);
5
    with (doorsolid)
6
        
scr_sizeexact
scr_sizeexact

function
scr_sizeexact(arg0, arg1, arg2 = id)
{ with (arg2) { if (!sprite_exists(sprite_index)) { debug_message("Can't size, no sprite"); exit; } var _w = sprite_get_width(sprite_index); var _h = sprite_get_width(sprite_index); image_xscale = arg0 / _w; image_yscale = arg1 / _h; } }
(door.sprite_width, door.sprite_height);
7
}
8
if (global.flag[1606] == 1)
9
{
10
    doorsolid.x = room_width * 2;
11
    layer_set_visible("HIDDEN_DOOR", 1);
12
    debug_message("hiddenDoorUnlocked");
13
}