Customized Event-Based HUD

Started by droneseven, November 24, 2009, 06:34:29 am

Previous topic - Next topic

droneseven

Hi guys, I'm a new member here, and not an experienced event designer :D
I use RMXP.

So I've got a request,

I'm trying to event a Health and SP HUD, with graphic changing system (uses a lot of graphics to show current HP by bars)

It mainly uses common event, parallel (to show background HUD panel image), and another common event to show HP and SP bars (whom located on the top of the background HUD panel image).

I have create the image the HP and SP bars, each 10 images (100 % bar, 90% bar, 80% bar, etc.)

I've been tinkering with that a lot, but I'm stuck when the health reach 90 %, the HP bar won't change (to lower percentage images).
Just for extra info, I uses variable 001 as "player health", and var 002 as "player SP".
This is the screenshot of my current HUD experiment, and the stuck situation screenshot.

The common event system (it's triggered already and it's parallel)
Spoiler: ShowHide



IT STUCK AT 90 HP!!!
Spoiler: ShowHide


And, my actor's max HP is 100 (and will NEVER increase, 'cuz I'm creating a realistic-action game, heheh).

Could somebody design me a HP SP HUD system?

Or, at least, help me with my problem?
I will provide the source images for you, here:

SOURCE IMAGE FOR MY (requested) HUD:
Spoiler: ShowHide
HUD BG Panel

100% HP Bar

90% HP Bar

80% HP Bar

70% HP Bar

60% HP Bar

50% HP Bar

40% HP Bar

30% HP Bar

20% HP Bar

10% HP Bar

0% HP Bar (it just an empty and transparent image)



Jackolas

no 100% health bar?

kinda hard to draw a 100% health if there is no bar pic of it

droneseven

Um, sir jackolas

THERE IS a 100% health bar image... it should located right below the HUD panel...

Hope someone come n figured it out soon   :^_^':

winkio

Your conditionals are set up the wrong way.

The way you have it set up now is:

if Health == 100
  stuff
else if Health <= 99
  stuff
else if health <= 90
  stuff
...

Anything below the if health <= 99 is not going to be reached because of the order that the conditions are evaluated. 

Try switching the direction of the conditions:

if Health == 100
  stuff
else if Health > 90
  stuff
else if health > 80
  stuff
...

Jackolas

QuoteTHERE IS a 100% health bar image... it should located right below the HUD panel...


bugger. my mistake. you put the text above the pic and not below. I need to learn to look better.

droneseven

@winkio:

It works with your >n conditionals!
Thanks very much!

@jackolas:

It's OK.