1 | if instance_exists(obj_battle_enemy_attack_dunebud_sandcastle_bucket) |
2 | { |
3 | if place_meeting(x, y, obj_battle_enemy_attack_dunebud_sandcastle_bucket) |
4 | { |
5 | var target = obj_battle_enemy_attack_dunebud_sandcastle_bucket |
6 | draw_sprite_clip(sprite_index, image_index, x, y, (bbox_left - 10), (target.bbox_bottom + 1), (bbox_right - bbox_left + 20), (bbox_bottom - target.bbox_bottom)) |
7 | } |
8 | else |
9 | draw_sprite(sprite_index, image_index, x, y) |
10 | } |
11 | else |
12 | draw_sprite(sprite_index, image_index, x, y) |