1 |
if (destroyable == 1) |
2 |
{ |
3 |
if (other.big == 0) |
4 |
{ |
5 |
with (other) |
6 |
event_user(0); |
7 |
} |
8 |
anim = instance_create(x, y, obj_yshot_anim); |
9 |
anim.image_xscale = image_xscale; |
10 |
anim.image_yscale = image_yscale; |
11 |
with (anim) |
12 |
sprite_index = spr_yheart_shot_hit3; |
13 |
if (sprite_index != spr_sneo_electric_orb_destroy) |
14 |
{ |
15 |
sprite_index = spr_sneo_electric_orb_destroy; |
16 |
image_index = 0; |
17 |
alarm[0] |
18 |
image_speed = 0.5; |
19 |
} |
20 |
} |
21 |
else if (destroyable == -1) |
22 |
{ |
23 |
with (other) |
24 |
event_user(0); |
25 |
} |