I'd like to use bars for users to set variables.
Think of buying items, you would have a bar for each item. Each item would have a cost. You would only have a specific amount of cash.
The user might spend half of their funds on one item, leaving them less for others. Can I adjust a bar based on these limits?
Also, how should I display the text of the value in the screen with the bars?
Thanks.
Any code examples of using bars for setting values of variables?
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.
- VideoGameVet
- Newbie
- Posts: 24
- Joined: Fri Jun 07, 2019 1:03 pm
- Skype: william_volk
- Contact:
Any code examples of using bars for setting values of variables?
"A delayed game is eventually good, but a rushed game is forever bad."
- Shigeru Miyamoto
- Shigeru Miyamoto
Re: Any code examples of using bars for setting values of variables?
Eh. There are a few in the forum but not particularly good ones, I guess. Should be relatively easy to do with: https://www.renpy.org/doc/html/screen_a ... iableValue
Who is online
Users browsing this forum: No registered users