Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_climb_vinecuttable_Draw_0

(view raw script w/o annotations or w/e)
1
var draw_top_end = false;
2
with (upper_vine)
3
{
4
    if ((image_index % 10) == 0)
5
        draw_top_end = true;
6
}
7
if (image_index != (image_index_start + 4))
8
{
9
    d3d_set_fog(true, dark_blend, 0, 1);
10
    draw_sprite_ext(sprite_index, image_index_start + 9, x, y, 2, 2, 0, c_white, 0.5);
11
    d3d_set_fog(false, c_white, 0, 1);
12
}
13
if (draw_top_end)
14
    draw_sprite_ext(sprite_index, image_index, x, y - 40, 2, 2, 0, c_white, 1);
15
draw_sprite_ext(sprite_index, image_index + 5, x, y, 2, 2, 0, c_white, 1);