Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_marker_glow_Draw_0

(view raw script w/o annotations or w/e)
1
draw_sprite_ext(sprite_index, image_index, 
scr_even
scr_even

function
scr_even(arg0)
{ return round(arg0 / 2) * 2; }
(x),
scr_even
scr_even

function
scr_even(arg0)
{ return round(arg0 / 2) * 2; }
(y), image_xscale, image_yscale, image_angle, image_blend, image_alpha);
2
if (active)
3
{
4
    timer++;
5
    if (glow)
6
    {
7
        var glowamt = round(sin(timer / glowspeed) * glowrate) / glowrate;
8
        glowamt = 1;
9
        gpu_set_fog(true, glowcolor, 0, 0);
10
        draw_sprite_ext(sprite_index, image_index, 
scr_even
scr_even

function
scr_even(arg0)
{ return round(arg0 / 2) * 2; }
(x),
scr_even
scr_even

function
scr_even(arg0)
{ return round(arg0 / 2) * 2; }
(y), image_xscale, image_yscale, image_angle, image_blend, glowamt);
11
        gpu_set_fog(false, c_white, 0, 0);
12
    }
13
}