Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_battleLayerHighlight_Draw_0

(view raw script w/o annotations or w/e)
1
if (state == 0)
2
{
3
    surf = surface_create(room_width, room_height);
4
    surface_set_target(surf);
5
    draw_clear_alpha(c_white, 0);
6
    var lay_id = layer_get_id("TILES_BATTLEBORDER");
7
    var map_id = layer_tilemap_get_id(lay_id);
8
    draw_tilemap(map_id, 0, 0);
9
    spr_battleborder = sprite_create_from_surface(surf, 0, 0, room_width, room_height, 1, 0, 0, 0);
10
    surface_reset_target();
11
    surface_free(surf);
12
    state = 1;
13
}
14
if (state == 1)
15
{
16
    depth = 777777;
17
    draw_sprite_ext(spr_battleborder, 0, 0, 0, 1, 1, 0, c_white, myalpha);
18
}