Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_afterimage_fade_to_white_Draw_0

(view raw script w/o annotations or w/e)
1
draw_self();
2
if (con == 0)
3
    whitealpha += fadeSpeed;
4
if (whitealpha >= 1)
5
{
6
    con = 1;
7
    whitealpha = 1;
8
    image_alpha = 0;
9
}
10
if (con == 1)
11
{
12
    whitealpha -= fadeSpeed;
13
    if (whitealpha < 0)
14
        instance_destroy();
15
}
16
d3d_set_fog(true, c_white, 0, 1);
17
draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, image_angle, image_blend, whitealpha);
18
d3d_set_fog(false, c_black, 0, 0);