| 1 |
if (live_call()) |
| 2 |
return global.live_result; |
| 3 |
draw_self(); |
| 4 |
if (sprite_index == martlet_sprite_base) |
| 5 |
exit; |
| 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(bm_dest_alpha, bm_inv_dest_alpha); |
| 16 |
draw_sprite_tiled(space_test, 0, 0, 0); |
| 17 |
draw_set_blend_mode(bm_normal); |
| 18 |
} |
| 19 |
surface_reset_target(); |
| 20 |
draw_surface(wing_surf, 0, 0); |