**Edit: Problem Solved! You can close this thread now.**
So I use the easiest method of eventing a HUD health bar. Which is the picture zoom method. (basically I call a common event that displays two pictures, one for the HUD frame and the other the HP bar.
To calculate how the health bar is going to decrease, I use the following snippet
The problem? The x positioning! When the HP becomes too low, the HP bar just glitches out of the HUD box. And I have no idea how to fix this.
When full, it looks like this : )
But when empty it does this : (
Any ideas?
So I use the easiest method of eventing a HUD health bar. Which is the picture zoom method. (basically I call a common event that displays two pictures, one for the HUD frame and the other the HP bar.
To calculate how the health bar is going to decrease, I use the following snippet
Code:
mhp = $game_party.members[0].mhp
hp = $game_party.members[0].hp
calculate = (hp * 100) / mhp
screen.pictures[2].move(0, 0, 0, calculate, 100, 255, 0, 30)
The problem? The x positioning! When the HP becomes too low, the HP bar just glitches out of the HUD box. And I have no idea how to fix this.
When full, it looks like this : )
But when empty it does this : (
Any ideas?