1 | if (!surface_exists(global.attack_surface)) |
2 | global.attack_surface = surface_create(global.attack_surface_width, global.attack_surface_height) |
3 | surface_set_target(global.attack_surface) |
4 | draw_clear_alpha(c_black, 0) |
5 | surface_reset_target() |