Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_darkness_overlay_backup_Other_10

(view raw script w/o annotations or w/e)
1
with (target_object)
2
{
3
    if (object_index == obj_character_church_window_silhouette || object_index == obj_darkness_unlit_object || object_index == obj_darkness_illusion || object_index == obj_darkness_bullet || object_index == obj_dw_church_pushableshelf_3x3)
4
    {
5
        continue;
6
    }
7
    else
8
    {
9
        var _yoff = 4;
10
        if (object_index == obj_caterpillarchara)
11
        {
12
            if (name == "susie")
13
            {
14
                _yoff = 0;
15
            }
16
            else if (name == "ralsei")
17
            {
18
                if (facing[target] == 0)
19
                    _yoff = 8;
20
                else if (facing[target] == 2)
21
                    _yoff = 12;
22
            }
23
        }
24
        draw_sprite_ext(sprite_index, image_index, screenx(), (screeny() + ((sprite_height - sprite_yoffset) * 2)) - _yoff, image_xscale, -image_yscale, image_angle, c_black, image_alpha);
25
    }
26
}