Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_martlet_final_base_Draw_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
draw_self()
4
if (sprite_index == martlet_sprite_base)
5
    return;
6
if (!surface_exists(wing_surf))
7
    wing_surf = surface_create(surface_get_width(application_surface), surface_get_height(application_surface))
8
surface_set_target(wing_surf)
9
draw_clear_alpha(c_black, 0)
10
var sprite_name = sprite_get_name(sprite_index) + "_mask"
11
var mask_asset = asset_get_index(sprite_name)
12
if (mask_asset != -1)
13
{
14
    draw_sprite_ext(mask_asset, image_index, x, y, image_xscale, image_yscale, image_angle, c_white, 1)
15
    draw_set_blend_mode_ext(7, 8)
16
    draw_sprite_tiled(space_test, 0, 0, 0)
17
    draw_set_blend_mode(0)
18
}
19
surface_reset_target()
20
draw_surface(wing_surf, 0, 0)