Help with onscreen Stats bar
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.
Help with onscreen Stats bar
Hello Fellow Renpy users,
I am making a game where i want the player stats,affection points to be displayed continuously during the game on the left side of the windows in a short bar.
I would also like to change the color of the bar to black like my game background, its now the default green, but i don't know how.
I have tried different things but:
Or the bar is not displayed.
Or only the Text box shows up and the game continues, (pic 1)
Or the bar is displayed but the game does not progress further. (pic2)
Under the daily menu comments i try to call the next function (awaken) but its stays just the window with the bar on it does not go further.
the code i am using is also attached.
I am a novice user, so i would kindly appreciate any help on this, and also suggestions on how to get this bar better.
I am making a game where i want the player stats,affection points to be displayed continuously during the game on the left side of the windows in a short bar.
I would also like to change the color of the bar to black like my game background, its now the default green, but i don't know how.
I have tried different things but:
Or the bar is not displayed.
Or only the Text box shows up and the game continues, (pic 1)
Or the bar is displayed but the game does not progress further. (pic2)
Under the daily menu comments i try to call the next function (awaken) but its stays just the window with the bar on it does not go further.
the code i am using is also attached.
I am a novice user, so i would kindly appreciate any help on this, and also suggestions on how to get this bar better.
Re: Help with onscreen Stats bar
Did you try searching the forum? Examples we have on bars are quite comprehensive + there is always documentation.
Re: Help with onscreen Stats bar
Yes, because i searched on the forum, i made it so far, but now i have not found more detailed on how to proceed.xela wrote:Did you try searching the forum? Examples we have on bars are quite comprehensive + there is always documentation.
i have experimented, that's why i posted it here for some help.
Re: Help with onscreen Stats bar
You cannot recolor default bars without access to their images. That is usually a bit tricky so either pick a different theme for your project or maybe create your own graphics.
You call a screen if you want the game to wait until it returns something.
You show a screen (like a stats screen) that you wish to be displayed continuously.
==>>
Your code for stats screen looks ok, I didn't see anything on bars.
Code: Select all
I have tried different things but:
Or the bar is not displayed.
Or only the Text box shows up and the game continues, (pic 1)
Or the bar is displayed but the game does not progress further. (pic2)
You show a screen (like a stats screen) that you wish to be displayed continuously.
==>>
Your code for stats screen looks ok, I didn't see anything on bars.
Re: Help with onscreen Stats bar
I think I finally understood what you meant, maybe something like this?:
You got me confused with the "bar', what you are looking for is a frame. For example:
Is a simple bunch of frames and texts inside of a larger frame, for which the code being generally the same as above just with some graphics.
Code: Select all
screen stats():
frame:
background Solid("#000000") # Black Solid, you'll have to use some graphic file to make it prettier..
has vbox
hbox:
xsize 200
text "Health" xalign 0
text "100" xalign 1.0
hbox:
xsize 200
text "Energy" xalign 0
text "10" xalign 1.0
label start:
show screen stats
pause
Is a simple bunch of frames and texts inside of a larger frame, for which the code being generally the same as above just with some graphics.
Re: Help with onscreen Stats bar
Yes Sir, that i want,
The Screen/frame to the left should stay on during the game so when the player levels up, or is injured or collects money the stats/ Figures can be seen, while the game keeps playing the textbox to the right.
The Screen/frame to the left should stay on during the game so when the player levels up, or is injured or collects money the stats/ Figures can be seen, while the game keeps playing the textbox to the right.
Re: Help with onscreen Stats bar
What should i add or adjust in the code to achieve that result?
A permanent window on the side displaying the players stat points, health,strength,money ect...
with the game playing in the big text box on the right side.
Right now as we can see it displays the stats screen frame with Skill 7, Strength ect... but the game itself does not proceed, its as if it stuck there, it does not call the "awaken" function.
A permanent window on the side displaying the players stat points, health,strength,money ect...
with the game playing in the big text box on the right side.
Right now as we can see it displays the stats screen frame with Skill 7, Strength ect... but the game itself does not proceed, its as if it stuck there, it does not call the "awaken" function.
Re: Help with onscreen Stats bar
The call statement have a screen close after the next interaction.
Use SHOW SCREEN to have a screen persist.
A BAR is a slider, not a panel.
're you sure you're opened at least once the documentation? It's more helpfull than waiting for answers from the web, I swear!!!
Use SHOW SCREEN to have a screen persist.
A BAR is a slider, not a panel.
're you sure you're opened at least once the documentation? It's more helpfull than waiting for answers from the web, I swear!!!
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll not be notified about. << now red so probably you'll see it.
10 ? "RENPY"
20 GOTO 10
RUN
10 ? "RENPY"
20 GOTO 10
RUN
Re: Help with onscreen Stats bar
Yeahgas wrote:The call statement have a screen close after the next interaction.
Use SHOW SCREEN to have a screen persist.
A BAR is a slider, not a panel.
're you sure you're opened at least once the documentation? It's more helpfull than waiting for answers from the web, I swear!!!
Its is working now nicely, now i can proceed.
Thank you very much for your help Eileen.
you also gas
Who is online
Users browsing this forum: Google [Bot]