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