1 |
if (live_call()) |
2 |
return global.live_result; |
3 |
if (global.current_hp_enemy <= 0) |
4 |
{ |
5 |
scr_audio_fade_outscr_audio_fade_outfunction scr_audio_fade_out(arg0, arg1)
{
var snd = arg0;
var fade_len = arg1;
if (!audio_is_playing(snd))
return false;
audio_sound_gain(snd, 0, fade_len);
if (instance_exists(obj_audio_fade_helper))
{
with (obj_audio_fade_helper)
{
if (audio_to_fade == snd)
return false;
}
}
with (instance_create(0, 0, obj_audio_fade_helper))
audio_to_fade = snd;
} (global.battle_music, 500); |
6 |
instance_destroy(obj_fmartlet_spawner_feathers_scratch); |
7 |
instance_destroy(obj_fmartlet_spawner_feathers_wings); |
8 |
instance_destroy(obj_fmartlet_spawner_wings_scratch); |
9 |
instance_destroy(obj_battle_enemy_attack_martlet_wing_gust_final_spawner); |
10 |
instance_destroy(obj_fmartlet_spawner_talon_walls); |
11 |
instance_destroy(obj_battle_enemy_attack_martlet_feather_circle_final_checker); |
12 |
global.enemy_attack = "Empty"; |
13 |
scr_battle_box_resize_midfightscr_battle_box_resize_midfightfunction scr_battle_box_resize_midfight()
{
if (instance_exists(obj_dialogue_box_battle_transformation_any))
{
with (obj_dialogue_box_battle_transformation_any)
{
battle_box_resize_midfight = true;
battle_box_target_xscale = argument[0] / sprite_get_width(sprite_index);
battle_box_target_yscale = argument[1] / sprite_get_height(sprite_index);
if (argument_count > 2)
{
battle_box_target_x = argument[2];
battle_box_target_y = argument[3];
}
if (abs(image_xscale - battle_box_target_xscale) < 0.01 && abs(image_yscale - battle_box_target_yscale) < 0.01 && abs(x - battle_box_target_x) < 0.1 && abs(y - battle_box_target_y) < 0.1)
{
var box = 3154;
global.attack_surface_width = box.sprite_width - 8;
global.attack_surface_height = box.sprite_height - 8;
global.attack_surface_x = box.x - (global.attack_surface_width * 0.5);
global.attack_surface_y = box.y - (global.attack_surface_height * 0.5);
if (surface_exists(global.attack_surface))
global.attack_surface = surface_create(global.attack_surface_width, global.attack_surface_height);
return true;
}
}
}
else
{
return false;
}
} (40, 40, 320, 320); |
14 |
with (obj_martlet_final_base) |
15 |
{ |
16 |
if (sprite_index != spr_martlet_final_knocked_down) |
17 |
{ |
18 |
sprite_index = spr_martlet_final_knocked_down; |
19 |
image_index = 0; |
20 |
image_speed = 1; |
21 |
} |
22 |
if (image_index >= (image_number - 2)) |
23 |
{ |
24 |
image_speed = 0; |
25 |
image_index = image_number - 1; |
26 |
if (!instance_exists(obj_martlet_final_armor)) |
27 |
instance_create_depth(x, y + 80, depth - 1, obj_martlet_final_armor); |
28 |
} |
29 |
x = lerp(x, 320, 0.15); |
30 |
y = lerp(y, 70, 0.15); |
31 |
} |
32 |
} |