Need Help with stat bar [SOLVED]
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Need Help with stat bar [SOLVED]
Hey all!
Ok so I downloaded the dse but I only want the stat bars not the day planner as I want to create relationship bars that go up say like 10 after a particular choice and I'm figuring this is the only way for me to do it...
I've tried searching for how to make the relationship bars like in flower shop and Bionic Heart but have had no help thus far.
Any help would be appreciated
Ok so I downloaded the dse but I only want the stat bars not the day planner as I want to create relationship bars that go up say like 10 after a particular choice and I'm figuring this is the only way for me to do it...
I've tried searching for how to make the relationship bars like in flower shop and Bionic Heart but have had no help thus far.
Any help would be appreciated
Last edited by saskuto on Mon Mar 22, 2010 7:04 pm, edited 1 time in total.
- Midnighticequeen
- Veteran
- Posts: 292
- Joined: Fri Apr 04, 2008 4:04 pm
- Completed: Bunni and Kitty, Sweethearts, Tiesa's Tales
- Projects: Wish
- Organization: Ice Queen Games
- itch: icequeenstudios
- Contact:
Re: Need Help with stat bar
Hmm...I'm pretty sure Jack just customized the standard stats bar to look like that. If you want something similar he might be willing to help you.
Re: Need Help with stat bar
is Jack pytom?Midnighticequeen wrote:Hmm...I'm pretty sure Jack just customized the standard stats bar to look like that. If you want something similar he might be willing to help you.
- Midnighticequeen
- Veteran
- Posts: 292
- Joined: Fri Apr 04, 2008 4:04 pm
- Completed: Bunni and Kitty, Sweethearts, Tiesa's Tales
- Projects: Wish
- Organization: Ice Queen Games
- itch: icequeenstudios
- Contact:
Re: Need Help with stat bar
No, he's the guy who created Bionic Hearts and the Flower Shop
Re: Need Help with stat bar
so how would I contact him?Midnighticequeen wrote:No, he's the guy who created Bionic Hearts and the Flower Shop
- Midnighticequeen
- Veteran
- Posts: 292
- Joined: Fri Apr 04, 2008 4:04 pm
- Completed: Bunni and Kitty, Sweethearts, Tiesa's Tales
- Projects: Wish
- Organization: Ice Queen Games
- itch: icequeenstudios
- Contact:
Re: Need Help with stat bar
You can send him a pm. He's on this forum a lot and you can search for him using his user name.
- netravelr
- Miko-Class Veteran
- Posts: 504
- Joined: Thu Jan 28, 2010 2:31 am
- Completed: Culina: Hands in the Kitchen, Culina: The Spirit of Cooking, Saving Zoey
- Projects: Love at the Laundromat
- Organization: Lakeview Interactive
- Deviantart: netravelr
- Location: USA
- Contact:
Re: Need Help with stat bar
Well, I know Jack is busy working on 5 projects now and he hardly has any free time, so I'll see if I can help you a little bit. I haven't done this myself, but I have done a health/mana bar before using custom graphics so we can try to hack similar behavior.
I myself use a python function that I can show_bars that goes a little something like this:
Just to be a little clearer:
The ui.image class is one that can be used to place an image on the screen.
I use im.Scale on the back image to give the full amount of a bar so there is something behind it. For the overlay I scale my png to be whatever percentage of stamina I have compared to the full amount.
Setting the xpos and ypos moves the image to where you want in the screen.
To get the happy and frowning face on your bar you could just add two images.
I'm sure there's something easy you can use to transition from one state to the other if you want to replicate it but I don't know what it is.
Is this something similar to what you're looking for?
I myself use a python function that I can show_bars that goes a little something like this:
Code: Select all
def show_bars():
## Health Bar
ui.image(im.Scale("bar_back.png", 30 * MaxStamina, 25, xpos = 20, ypos = 20));
ui.image(im.Scale("bar_over.png", 30 * Stamina, 25, xpos = 20, ypos = 23));
## Other bars would be placed here should you want it.
return;
The ui.image class is one that can be used to place an image on the screen.
I use im.Scale on the back image to give the full amount of a bar so there is something behind it. For the overlay I scale my png to be whatever percentage of stamina I have compared to the full amount.
Setting the xpos and ypos moves the image to where you want in the screen.
To get the happy and frowning face on your bar you could just add two images.
I'm sure there's something easy you can use to transition from one state to the other if you want to replicate it but I don't know what it is.
Is this something similar to what you're looking for?
Technical Designer/Programmer
Game Design Portfolio - Project updates on my Twitter
Experienced in: C/C++/C#, Python, Unreal, Unity, and Flash
_________________
"Space can be very lonely. The greatest adventure is having someone share it with you."
-
- Regular
- Posts: 111
- Joined: Thu Aug 06, 2009 6:51 am
- Completed: Begin of Evangelion, SAO - Smile of the black cat, SAO - Project "Ceramic Heart", Time for Dragons
- Location: Russia
- Contact:
Re: Need Help with stat bar [SOLVED]
init block
anywhere
Code: Select all
style.create ('statbar','vbar')
style.statbar.fore_bar = im.FactorScale("battle_gfx/ui/bars/bar.png",1.0,1.0)
style.statbar.aft_bar = "gfx/blank.png" #im.FactorScale("battle_gfx/ui/bars/bar_bg.png",1.463,1.0)
style.statbar.xmaximum = 15
style.statbar.ymaximum = 50
style.statbar.subpixel = True
Code: Select all
ui.bar(max_value, current_value, style='statbar')
Who is online
Users browsing this forum: No registered users