1 |
if (live_call()) |
2 |
return global.live_result; |
3 |
var random_number = irandom_range(4, 5); |
4 |
switch (random_number) |
5 |
{ |
6 |
case 4: |
7 |
feather_sprite = 2276; |
8 |
break; |
9 |
case 5: |
10 |
feather_sprite = 2278; |
11 |
break; |
12 |
default: |
13 |
feather_sprite = 2273; |
14 |
} |
15 |
for (var i = 0; i < fcreate_count; i += 1) |
16 |
{ |
17 |
var fcreate_x = x + (feather_radius * cos(degtorad(fcreate_angle_diff))); |
18 |
var fcreate_y = y - (feather_radius * sin(degtorad(fcreate_angle_diff))); |
19 |
global.id_store = id; |
20 |
instance_create_depth(fcreate_x, fcreate_y, -100, obj_battle_enemy_attack_martlet_genocide_feather_ext_feather_final); |
21 |
id_feather[i] = global.id_store; |
22 |
with (id_feather[i]) |
23 |
{ |
24 |
sprite_index = other.feather_sprite; |
25 |
image_index = 0; |
26 |
image_speed = 0; |
27 |
if (other.feather_targetted == true) |
28 |
{ |
29 |
image_angle = other.fcreate_angle - (i * other.fcreate_decrease); |
30 |
} |
31 |
else |
32 |
{ |
33 |
var image_angle_inc = 360 / other.fcreate_count; |
34 |
image_angle = i * image_angle_inc; |
35 |
} |
36 |
trail_sprite = sprite_index; |
37 |
} |
38 |
} |
39 |
can_move = true; |
40 |
switch (feather_sprite) |
41 |
{ |
42 |
case 2273: |
43 |
case 2274: |
44 |
case 2275: |
45 |
audio_play_sound(snd_mart_spiral_attack_2, 20, 0); |
46 |
break; |
47 |
case 2276: |
48 |
case 2278: |
49 |
audio_play_sound(snd_mart_spiral_attack_1, 20, 0); |
50 |
break; |
51 |
default: |
52 |
audio_play_sound(snd_mart_spiral_attack_1, 20, 0); |
53 |
} |