| 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_bullet_rain_gun) |
| 20 |
{ |
| 21 |
if (can_fire == 1) |
| 22 |
audio_shot_can_play = false; |
| 23 |
} |
| 24 |
with (bullet) |
| 25 |
event_user(0); |
| 26 |
gravity = 0.25; |
| 27 |
speed = -3; |
| 28 |
vspeed = -1; |
| 29 |
can_fire = 2; |
| 30 |
} |
| 31 |
if (can_fire == 2) |
| 32 |
{ |
| 33 |
image_angle += (image_yscale * 2); |
| 34 |
if (image_alpha > 0) |
| 35 |
image_alpha -= 0.025; |
| 36 |
else |
| 37 |
instance_destroy(); |
| 38 |
} |
| 39 |
event_inherited(); |