Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_npc_castle_door_Step_0

(view raw script w/o annotations or w/e)
1
if (i_ex(obj_readable_room1))
2
{
3
    with (obj_readable_room1)
4
    {
5
        if (visible == 1)
6
        {
7
            image_speed = 0.25;
8
            if (direction >= 136 && direction <= 225)
9
                image_xscale = 2;
10
            if (direction >= 306 || direction <= 45)
11
                image_xscale = -2;
12
            if (sprite_index == spr_tasque_idle_overworld)
13
                depth = (y > 350) ? (obj_mainchara.depth - 100) : (obj_mainchara.depth + 100);
14
            else
15
                scr_depth
scr_depth

function scr_depth() { depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
16
        }
17
    }
18
}
19
if (howl_con == 1 && !d_ex())
20
{
21
    howl_con = 0;
22
    snd_play(snd_howl);
23
}