| 1 | function draw_on_surface_tiled() |
| 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_tiled(sprite_index, image_index, x - x_offset, y - y_offset); |
| 10 | surface_reset_target(); |
| 11 | } |