Deltarune (Chapter 5) script viewer

← back to main script listing

gml_GlobalScript_draw_surface_centered

(view raw script w/o annotations or w/e)
1
function draw_surface_centered(arg0, arg1, arg2)
2
{
3
    draw_surface(arg0, arg1 - (surface_get_width(arg0) / 2), arg2 - (surface_get_height(arg0) / 2));
4
}