Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_martlet_final_wing_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
draw_sprite_ext(spr_martlet_final_wing_mask, image_index, x, y, image_xscale, 1, image_angle, c_white, image_alpha);
9
draw_set_blend_mode_ext(7, bm_inv_dest_alpha);
10
draw_sprite_tiled(space_test, 0, 0, 0);
11
draw_set_blend_mode(bm_normal);
12
surface_reset_target();
13
draw_surface(wing_surf, 0, 0);