1 |
if (live_call()) |
2 |
return global.live_result; |
3 |
x_destination = x_target_override; |
4 |
y_destination = y_target_override; |
5 |
angle_destination = point_direction(x, y, x_destination, y_destination); |
6 |
if (angle_difference(image_angle, angle_destination) > 0) |
7 |
spin_direction = 1; |
8 |
else |
9 |
spin_direction = -1; |
10 |
global.id_store = id; |
11 |
with (instance_create_depth(x_destination, y_destination, -100, obj_martlet_attack_splitting_feather_target_axis)) |
12 |
geno_target_angle = other.explosion_angle; |
13 |
id_target = global.id_store; |
14 |
state = 1; |
15 |
switch (sprite_index) |
16 |
{ |
17 |
case spr_battle_enemy_attack_martlet_feather_1: |
18 |
audio_play_sound(snd_mart_feather_atk3, 20, 0); |
19 |
break; |
20 |
case spr_battle_enemy_attack_martlet_feather_2: |
21 |
case spr_battle_enemy_attack_martlet_feather_3: |
22 |
audio_play_sound(snd_mart_feather_atk1, 20, 0); |
23 |
break; |
24 |
case spr_battle_enemy_attack_martlet_feather_4: |
25 |
case spr_battle_enemy_attack_martlet_feather_5: |
26 |
audio_play_sound(snd_mart_feather_atk2, 20, 0); |
27 |
break; |
28 |
default: |
29 |
audio_play_sound(snd_mart_feather_atk1, 20, 0); |
30 |
} |