1 | if (destroyable == 1 && active == 1) |
2 | { |
3 | if (hitshot.big == 0) |
4 | { |
5 | with (hitshot) |
6 | event_user(0); |
7 | } |
8 | snd_play(snd_damage); |
9 | anim = instance_create(x, y, obj_yshot_anim); |
10 | anim.image_xscale = image_xscale; |
11 | anim.image_yscale = image_yscale; |
12 | with (anim) |
13 | sprite_index = spr_yheart_shot_hit3; |
14 | instance_destroy(); |
15 | } |
16 | else if (hitshot.big == 0) |
17 | { |
18 | with (hitshot) |
19 | event_user(0); |
20 | } |