Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_homealone_vent_cover_Draw_0

(view raw script w/o annotations or w/e)
1
if (!horizontal)
2
{
3
    for (var i = 0; i < image_yscale; i++)
4
    {
5
        draw_sprite_ext(sprite_index, 0, x, y + (i * sprite_get_height(sprite_index)), 1, 1, 0, c_white, 1);
6
        draw_sprite_ext(sprite_index, 0, x, y + (i * sprite_get_height(sprite_index)), 1, 1, 0, c_black, cover_alpha);
7
    }
8
}
9
else
10
{
11
    for (var i = 0; i < image_xscale; i++)
12
    {
13
        draw_sprite_ext(bg_noellehouse_vents_tile_h, 0, x + (i * sprite_get_width(bg_noellehouse_vents_tile_h)), y, 1, 1, 0, c_white, 1);
14
        draw_sprite_ext(bg_noellehouse_vents_tile_h, 0, x + (i * sprite_get_width(bg_noellehouse_vents_tile_h)), y, 1, 1, 0, c_black, cover_alpha);
15
    }
16
}