1 | var battle_box = obj_dialogue_box_battle_transformation_any |
2 | var battle_box_third = battle_box.sprite_width / 3 |
3 | if (obj_heart_battle_fighting_parent.x < (battle_box.bbox_left + 4 + battle_box_third)) |
4 | spawn_pos = "left" |
5 | else if (obj_heart_battle_fighting_parent.x < (battle_box.bbox_left + 4 + battle_box_third * 2)) |
6 | spawn_pos = "middle" |
7 | else |
8 | spawn_pos = "right" |