Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_afterimage_screen_Draw_0

(view raw script w/o annotations or w/e)
1
if (draw_end)
2
    exit;
3
if (!surface_exists(my_surface))
4
    my_surface = surface_create(surface_get_width(application_surface), surface_get_height(application_surface));
5
surface_set_target(my_surface);
6
draw_surface(application_surface, 0, 0);
7
surface_reset_target();
8
draw_surface_ext(my_surface, x - (anchor_x * xscale), y - (anchor_y * yscale), xscale, yscale, 0, c_white, alpha);