Dialogue used to overlap the health bar if the window of the game was small enough. For that reason, the dialogue box had to move upwards.
How I chose the new "offset": 50 for the dialogue box
The 50 consists of the health bar's size (30) and twice the offset of it (the health bar) from the bottom (10). Twice because the health bar should have equal space with the dialogue box, that it has with the bottom of the sreen.
Summary
Dialogue used to overlap the health bar if the window of the game was small enough. For that reason, the dialogue box had to move upwards.
How I chose the new
"offset": 50
for the dialogue boxThe
50
consists of the health bar's size (30) and twice the offset of it (the health bar) from the bottom (10). Twice because the health bar should have equal space with the dialogue box, that it has with the bottom of the sreen.How to test
Screenshots
Before
After