Page 1 of 1

null

Posted: Tue Mar 31, 2020 12:01 am
by Kiyo
null

Re: Vertical Bar

Posted: Tue Mar 31, 2020 1:40 am
by Per K Grok
Kiyo wrote:
Tue Mar 31, 2020 12:01 am
Hello, how do I make this bar to appear in vertical? I tried ways to make it but it doesn't do any good. Hope you can help me with itbar.png
The way I do stuff like health bars is like this (possibly a bit unorthodox in a renpy game). It is a red bar on white background.

Code: Select all

    fixed:
        pos (0, 0)
        
        fixed:
            pos (20, 30)
            xysize (104,34)
            add Solid("#fff") pos (0, 0)
            
            fixed:
                pos (2, 2)
                xysize (MBhealth,30)
                if MBhealth>0:
                    add Solid("#f00") pos (0, 0)
MBhealth being the health value of one character. Full health being 100.
To make it vertical just switch place off the x and y values of xysize for both the white box and the red.

Re: Vertical Bar

Posted: Tue Mar 31, 2020 2:39 pm
by xavimat