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