lifebar up sprite background

I think he means vertical lifebars like Mega Man for example.

So you want the lifebar to be vertical instead of horizontal, right? You use lbarsize in levels.txt. You see the one in red? In the fifth parameter (which is orientation for lifebar), 0 is horizontal, so you can change it to 1 to make it vertical like this.

Example in levels.txt:

lbarsize  100 8 1 0 1 -9999 -9999 -9999 -9999
mpbarsize 78 3 1 1 0 -9999 -9999 -9999 -9999
timeloc  236 8 21 20 1

p1smenu          48  210  35 222
p2smenu          270 210 257 222
e1icon          2  26
e1life          20  34
e2icon          182 26
e2life          200 34
maxplayers      2
nosame          1
lives            5
credits          8



z 144 240 180
file         data/levels/stage1.txt
z 247 356 356
file         data/levels/stage2.txt

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) means horizontal while 1 means vertical.
{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.

You need to get a manual for OpenBOR so you can try out and study.
 
u78qnkiu9
LIKE THIS  http://postimg.org/image/u78qnkiu9/
 
~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.

Code:
bgicon {path} {x} {y}

    ~Determines the position of background icon. Background icon is optional icon that can be placed behind character's status to make HUD looks cooler ;).
    ~{path} is the location relative to OpenBoR of the icon's .gif.
    ~{x} and {y} are the number of pixels, right and down respectively, from the top left corner of the screen to the top left corner of the icon.
 
Wow, I didn't know bgicon exists, BeasTie. I see it's not documented in the manual. Isn't it in the character header or something?
 
Yeah it's in the manual under HUD settings, i copied that from http://dcemulation.org/?title=OpenBORManual

It goes in LEVELS.TXT ;)
 
Back
Top Bottom