Life BAr wont "warp"

I change the life bar HP from 100 to 250. P1 goes all the way to the edge of the screen in single player. P2 goes off screen. How do I get it to wrap?


below is the line of code


lbarsize 94 10 1 1 0 -300 -300 -9999 -9999
 
Here's from the manual:
lbarsize {w} {h} {noborder} {type} {orientation} {border} {shadow}{graph} {backfill}

You set type to 1 which means health bar is percentage based instead of wrap based. IOW you need to set 4th parameter to 0.
 
lbarsize {w} {h} {noborder} {type} {orientation} {border} {shadow} {graph} {backfill}

  • Controls the size of lifebars.
  • This applies to players, enemies, items, etc (their lifebar will all have the same width, height, etc). If 'olbarsize' is declared, this only applies to players.
  • {w} is the maximum amount of health the bar can display. Defaults to 100.
  • {h} is the height of the lifebar in pixels. Defaults to 5.
  • {noborder} turns on or off the border and shadow around life bars. {0} means there is, {1} means no outline or shadow.
  • {type} is a flag that sets how lifebar show health. 0 (default) means if an entity's health goes over width, the life bar will wrap around and 'double up' on top of itself (1 unit of health is 1 pixel long.). 1 means the lifebar is shown in percent based.
  • {orientation} is a flag that sets lifebar's orientation.
    • 0 (default) = horizontal orientation. Lifebar is filled from left to right in this mode.
    • 1 = vertical orientation. Lifebar is filled from down to up in this mode.
  • {border} sets layer adjustment of outer border. Default to 0.
  • {shadow} sets layer adjustment of border shadow. Default to 0.
  • {graph} sets layer adjustment of graph fill. Default to 0.
  • {backfill} sets layer adjustment graph background. Default to 0.
  • The last 4 variables can be used to place lifebar behind player 'icon' or 'bgicon'. To do that you need to give value like -300.

Changed to

lbarsize 94 10 1 0 0

lifebar still does not wrap and goes the length of the entire screen
What's your issue? It looks like your character's lifebar is 94 pixels wide and 10 pixels high. Does your character have its health value higher than that 94 you have?

Oh. And have you tried using lifebar.txt inside your data folder? You can use that to change colors with whatever color you want.

 
I wanted to ask more but your question in other thread seems to give hint of possible source of the issue. Answering your question in other thread might solve this issue also, so I suggest moving the discussion there.
 
Back
Top Bottom