1 |
if (arc_enemy_hp > 0) |
2 |
instance_destroy(other) |
3 |
arc_enemy_hp -= 1 |
4 |
if (arc_enemy_hp > 0) |
5 |
{ |
6 |
arc_enemy_hit = true |
7 |
alarm[0] |
8 |
audio_play_sound(snd_arc_hit, 1, 0) |
9 |
} |
10 |
else if (arc_enemy_death == false) |
11 |
{ |
12 |
step = 0 |
13 |
arc_enemy_death = true |
14 |
obj_arcade_controller.arcade_score += arc_enemy_score |
15 |
image_index = 0 |
16 |
sprite_index = arc_sprite_spared |
17 |
audio_play_sound(snd_arc_defeat, 1, 0) |
18 |
var scr = instance_create(x, (y - 20), obj_arcade_score) |
19 |
scr.score_amount = arc_enemy_score |
20 |
} |