Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Quad, aliswee), 835 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Vertical healthbar #468736
10/14/17 18:21
10/14/17 18:21
Joined: Jul 2001
Posts: 4,801
netherlands
Realspawn Offline OP

Expert
Realspawn  Offline OP

Expert

Joined: Jul 2001
Posts: 4,801
netherlands
For my lite_c library I have a part about healhtbars.
I use this for a vertical healthbar

Code:
BMAP* hb_map = "health.png";
PANEL* hb_pan = 
{
vbar = 836, 55, 255,hb_map, 1, health;
layer = 5;
flags =  SHOW;

}




The healhbar goes down in the wrong direction from bottom to top
how to make it work from top to bottom ? Do i somehow need to rotate the healthbar laugh

Many thanks


Find all my tutorials & Workshops at : www.rp-interactive.nl

Creativity starts in the brain
Re: Vertical healthbar [Re: Realspawn] #468737
10/14/17 18:24
10/14/17 18:24
Joined: Jul 2014
Posts: 72
D
DriftWood Offline
Junior Member
DriftWood  Offline
Junior Member
D

Joined: Jul 2014
Posts: 72
You need to change the function moving the bar.

Like if it's vbar+=5; make it -=5;

Wait - What is vbar anyway? Is it not supposed to be a window?

Last edited by DriftWood; 10/14/17 18:28.
Re: Vertical healthbar [Re: DriftWood] #468739
10/14/17 18:41
10/14/17 18:41
Joined: Jul 2001
Posts: 4,801
netherlands
Realspawn Offline OP

Expert
Realspawn  Offline OP

Expert

Joined: Jul 2001
Posts: 4,801
netherlands
I am using the old way if there is a better way i surely want to know laugh

The healthbar as it is works but it should become shorter from the top instead from the bottom.


Find all my tutorials & Workshops at : www.rp-interactive.nl

Creativity starts in the brain
Re: Vertical healthbar [Re: Realspawn] #468740
10/14/17 22:16
10/14/17 22:16
Joined: Jul 2014
Posts: 72
D
DriftWood Offline
Junior Member
DriftWood  Offline
Junior Member
D

Joined: Jul 2014
Posts: 72
Send me you're code and key and I'll fix it. Like the last decade.

My name is MALICE!

Re: Vertical healthbar [Re: DriftWood] #468741
10/15/17 04:23
10/15/17 04:23
Joined: Jul 2001
Posts: 4,801
netherlands
Realspawn Offline OP

Expert
Realspawn  Offline OP

Expert

Joined: Jul 2001
Posts: 4,801
netherlands
the lost soul is back.

the code is in here. I did a search and the question is asked several times in the forum so far no clear solution even not in one of the
aum's. Point is it works it needs to go reverse thats all laugh


Last edited by Realspawn; 10/15/17 04:24.

Find all my tutorials & Workshops at : www.rp-interactive.nl

Creativity starts in the brain
Re: Vertical healthbar [Re: Realspawn] #468743
10/15/17 08:23
10/15/17 08:23
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
The positionn of a panel describes where the top left pixel is. One way to do it is changing the position according to the scale: If your healthbar is 100 pixels high at max but only filled to 50 right now you have to move the panel downwards by the remaining 50 pixels.


POTATO-MAN saves the day! - Random
Re: Vertical healthbar [Re: Kartoffel] #468744
10/15/17 08:57
10/15/17 08:57
Joined: Jul 2001
Posts: 4,801
netherlands
Realspawn Offline OP

Expert
Realspawn  Offline OP

Expert

Joined: Jul 2001
Posts: 4,801
netherlands
Thank you Kartoffel laugh I see how it works now.

Every time i subtract health i lower the position

health -=13;
 hb_pan->pos_y += 13;

works like a charm thank you for your help.


Last edited by Realspawn; 10/18/17 14:43.

Find all my tutorials & Workshops at : www.rp-interactive.nl

Creativity starts in the brain

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1