RPG Maker Forums

**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

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 : )
upload_2019-9-16_12-6-58.png
But when empty it does this : (
upload_2019-9-16_12-6-45.png

Any ideas?

Latest Threads

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,035
Messages
1,018,454
Members
137,821
Latest member
Capterson
Top