| 1 |
image_alpha = 0; |
| 2 |
image_alpha_inc = 0.2; |
| 3 |
var time_to_fade_in = 1 / image_alpha_inc; |
| 4 |
image_angle_inc = 10; |
| 5 |
target_dir = 0; |
| 6 |
if (x > 320) |
| 7 |
target_dir = 180; |
| 8 |
direction = target_dir; |
| 9 |
image_angle = target_dir - (time_to_fade_in * image_angle_inc); |
| 10 |
can_fire = 0; |
| 11 |
bullet = instance_create(x, y, obj_battle_enemy_attack_starlo_bullet_rain_bullet); |
| 12 |
bullet.direction = target_dir; |
| 13 |
if (target_dir > 90 && target_dir < 270) |
| 14 |
image_yscale = -1; |
| 15 |
event_inherited(); |
| 16 |
if (!audio_is_playing(snd_starlo_gun_warn)) |
| 17 |
audio_play_sound(snd_starlo_gun_warn, 1, 0); |
| 18 |
audio_shot_can_play = true; |