| 1 |
if (!instance_exists(obj_heart_battle_fighting_parent)) |
| 2 |
{ |
| 3 |
instance_destroy(); |
| 4 |
exit; |
| 5 |
} |
| 6 |
if (image_alpha < 1 && can_move == false) |
| 7 |
{ |
| 8 |
image_alpha += 0.1; |
| 9 |
if (image_alpha > 1) |
| 10 |
image_alpha = 1; |
| 11 |
if (image_alpha == 1) |
| 12 |
can_move = true; |
| 13 |
} |
| 14 |
if (can_move == true) |
| 15 |
{ |
| 16 |
fall_speed += grav; |
| 17 |
if (fall_speed > fall_max) |
| 18 |
fall_speed = fall_max; |
| 19 |
vsp = fall_speed; |
| 20 |
if (sign(vsp) == 1 && place_meeting(x, y + vsp, obj_battle_enemy_attack_frostermit_ice_cube)) |
| 21 |
{ |
| 22 |
while (!place_meeting(x, y + sign(vsp), obj_battle_enemy_attack_frostermit_ice_cube)) |
| 23 |
y += sign(vsp); |
| 24 |
vsp = 0; |
| 25 |
} |
| 26 |
if (sign(vsp) == 1 && (bbox_bottom + vsp) >= (obj_dialogue_box_battle_transformation_any.bbox_bottom - 4)) |
| 27 |
{ |
| 28 |
while ((bbox_bottom + sign(vsp)) < (obj_dialogue_box_battle_transformation_any.bbox_bottom - 4)) |
| 29 |
y += sign(vsp); |
| 30 |
vsp = 0; |
| 31 |
} |
| 32 |
y += vsp; |
| 33 |
} |