finally after a long time I have fixed this thing that was bothering me, now the rightmost prompt will get near the edge of the textbox based on the content of the text (top: before, bottom: after)
also I've finally finished coding the minigame at the cliffs when you return there via warp door now (its just the chase again but with regular enemies)