Deltarune (Chapter Select) script viewer

← back to main script listing

gml_Object_obj_screen_transition_Draw_0

(view raw script w/o annotations or w/e)
1
if (!_active)
2
    exit;
3
if (!sprite_exists(spr_aftereffect))
4
{
5
    spr_aftereffect = sprite_create_from_surface(application_surface, 0, 0, room_width, room_height, false, false, 0, 0);
6
    sprite_set_offset(spr_aftereffect, room_width / 2, room_height / 2);
7
    yy = room_height / 2;
8
}
9
draw_set_color(c_black);
10
draw_rectangle(0, 0, room_width, room_height, 0);
11
draw_set_color(c_white);
12
draw_sprite_ext(spr_aftereffect, 0, room_width / 2, yy, xscale, yscale, 0, c_white, fadeout);