| 1 | function draw_on_surface() |
| 2 | { |
| 3 | if (!surface_exists(global.attack_surface)) |
| 4 | { |
| 5 | draw_self(); |
| 6 | exit; |
| 7 | } |
| 8 | surface_set_target(global.attack_surface); |
| 9 | draw_sprite_ext(sprite_index, image_index, x - global.attack_surface_x, y - global.attack_surface_y, image_xscale, image_yscale, image_angle, image_blend, image_alpha); |
| 10 | surface_reset_target(); |
| 11 | } |