1 |
if live_call() |
2 |
return global.live_result; |
3 |
vspeed = lerp(vspeed, (-speed_target), 0.15) |
4 |
var battle_box = obj_dialogue_box_battle_transformation_any |
5 |
if (y < obj_flowey_1_attack_9_head.y) |
6 |
instance_destroy() |
7 |
if (image_index >= 7 || y < battle_box.bbox_top) |
8 |
{ |
9 |
image_alpha = lerp(image_alpha, 0.5, 0.35) |
10 |
depth = obj_flowey_1_attack_9_head.depth + 1 |
11 |
} |
12 |
else |
13 |
{ |
14 |
image_alpha = lerp(image_alpha, 1, 0.35) |
15 |
depth = obj_flowey_1_attack_9_head.depth - 1 |
16 |
if (place_meeting(x, y, obj_heart_battle_fighting_parent) && obj_heart_battle_fighting_parent.vulnerable == true) |
17 |
scr_battle_damage_playerscr_battle_damage_playerfunction scr_battle_damage_player() //gml_Script_scr_battle_damage_player
{
var damage = global.enemy_attack_stat - global.player_armor_defense - global.player_armor_modifier_defense - global.player_defense + 10
global.current_hp_self -= damage
audio_play_sound(snd_hurt, 1, 0)
with (obj_heart_battle_fighting_parent)
{
vulnerable = false
global.hit_self = true
alarm[0]
}
} () |
18 |
} |