Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_pickup_Draw_0

(view raw script w/o annotations or w/e)
1
var gridx, gridy;
2
if (con != 5)
3
{
4
    gridx = round(x / 2) * 2;
5
    gridy = round(y / 2) * 2;
6
    draw_sprite_ext(sprite_index, image_index, gridx, gridy, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
7
}
8
else
9
{
10
    draw_self();
11
}
12
if (glow)
13
{
14
    glowtimer++;
15
    if ((glowtimer % 8) == 0)
16
        glowsiner++;
17
    d3d_set_fog(true, c_white, 0, 0);
18
    draw_sprite_ext(sprite_index, image_index, gridx, gridy, image_xscale, image_yscale, image_angle, image_blend, abs(sin(glowsiner / 2)));
19
    d3d_set_fog(false, c_white, 0, 0);
20
}