1 |
if live_call() |
2 |
return global.live_result; |
3 |
if (!instance_exists(obj_martlet_body)) |
4 |
{ |
5 |
sprite_index = spr_martlet_g_full_fly_begin |
6 |
id_martlet = obj_martlet_g_body |
7 |
} |
8 |
else |
9 |
id_martlet = obj_martlet_body |
10 |
global.id_store = id |
11 |
with (id_martlet) |
12 |
{ |
13 |
image_alpha = 0 |
14 |
time_elapsed = 0 |
15 |
sign_modifier = 1 |
16 |
if (object_index == obj_martlet_g_body) |
17 |
{ |
18 |
time_elapsed_g = 0 |
19 |
sign_modifier_g = 1 |
20 |
} |
21 |
id_martlet_wing_gust = global.id_store |
22 |
} |
23 |
default_y = y |
24 |
max_y = 40 |
25 |
speed_y = 4 |
26 |
atk_counter_current = 0 |
27 |
atk_alarm_no_loop = false |
28 |
if (!instance_exists(obj_martlet_body)) |
29 |
{ |
30 |
atk_counter_max = 9 |
31 |
atk_alarm = 30 |
32 |
} |
33 |
else |
34 |
{ |
35 |
atk_counter_max = 7 |
36 |
atk_alarm = 35 |
37 |
} |
38 |
fly_state = 0 |
39 |
to_landing = false |
40 |
sign_modifier = -1 |
41 |
time_elapsed = 10 |
42 |
time_max = 20 |
43 |
time_increase = 1 |
44 |
max_rise = max_y |
45 |
image_speed_begin = 1 |
46 |
image_index_begin = 0 |
47 |
image_speed_during = (1/3) |
48 |
image_index_during_s = 2 |
49 |
image_index_during_e = 0 |
50 |
image_speed_end = (1/3) |
51 |
image_index_end = 0 |
52 |
image_speed = image_speed_begin |
53 |
image_index = image_index_begin |
54 |
no_loop_sound = false |
55 |
instance_create(320, 240, obj_battle_enemy_attack_martlet_wind_gust_wind) |