Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_draw_on_surface_tiled

(view raw script w/o annotations or w/e)
1
function draw_on_surface_tiled() //gml_Script_draw_on_surface_tiled
2
{
3
    if (!surface_exists(global.attack_surface))
4
    {
5
        draw_self()
6
        return;
7
    }
8
    surface_set_target(global.attack_surface)
9
    draw_sprite_tiled(sprite_index, image_index, (x - x_offset), (y - y_offset))
10
    surface_reset_target()
11
}