Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_martlet_final_body_intro_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 (!surface_exists(wing_surf))
5
    wing_surf = surface_create(surface_get_width(application_surface), surface_get_height(application_surface))
6
surface_set_target(wing_surf)
7
draw_clear_alpha(c_black, 0)
8
var sprite_name = sprite_get_name(sprite_index) + "_mask"
9
var mask_asset = asset_get_index(sprite_name)
10
if (mask_asset != -1)
11
{
12
    draw_sprite_ext(mask_asset, image_index, x, y, image_xscale, image_yscale, image_angle, c_white, image_alpha)
13
    draw_set_blend_mode_ext(7, 8)
14
    draw_sprite_tiled(space_test, 0, 0, 0)
15
    draw_set_blend_mode(0)
16
}
17
surface_reset_target()
18
draw_surface(wing_surf, 0, 0)