1 |
if (can_fire == 0) |
2 |
{ |
3 |
image_angle += image_angle_inc |
4 |
image_alpha += image_alpha_inc |
5 |
if (image_alpha >= 1) |
6 |
{ |
7 |
image_alpha = 1 |
8 |
if (!alarm[0]) |
9 |
{ |
10 |
alarm[0] = 16 |
11 |
can_fire = -1 |
12 |
} |
13 |
} |
14 |
} |
15 |
if (can_fire == 1) |
16 |
{ |
17 |
if (audio_shot_can_play == true) |
18 |
audio_play_sound(snd_shotweak, 1, 0) |
19 |
with (obj_battle_enemy_attack_starlo_guns_horizontal_gun) |
20 |
{ |
21 |
if (can_fire == 1) |
22 |
audio_shot_can_play = false |
23 |
} |
24 |
with (obj_battle_enemy_attack_starlo_guns_vertical_gun) |
25 |
{ |
26 |
if (can_fire == 1) |
27 |
audio_shot_can_play = false |
28 |
} |
29 |
with (bullet) |
30 |
event_user(0) |
31 |
gravity = 0.25 |
32 |
speed = -3 |
33 |
vspeed = -1 |
34 |
can_fire = 2 |
35 |
} |
36 |
if (can_fire == 2) |
37 |
{ |
38 |
image_angle += (image_yscale * 2) |
39 |
if (image_alpha > 0) |
40 |
image_alpha -= 0.025 |
41 |
else |
42 |
instance_destroy() |
43 |
} |
44 |
event_inherited() |