Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_grazebox_Draw_0

(view raw script w/o annotations or w/e)
1
if (grazetimer > 0)
2
{
3
    draw_sprite_ext(sprite_index, 0, x, y, 1, 1, 0, c_white, grazetimer / 6);
4
    draw_sprite_ext(sprite_index, 3, x, y, 1, 1, 0, c_white, (grazetimer / 6) - 0.2);
5
    if (image_xscale > 1)
6
    {
7
        draw_sprite_ext(sprite_index, 0, x, y, image_xscale, image_yscale, 0, c_white, grazetimer / 6);
8
        draw_sprite_ext(sprite_index, 3, x, y, image_xscale, image_yscale, 0, c_white, (grazetimer / 6) - 0.2);
9
    }
10
}
11
grazetimer -= 1;