Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
-
span4ev
- Regular
- Posts: 77
- Joined: Fri Jul 08, 2022 9:29 pm
- itch: rpymc
-
Contact:
#1
Post
by span4ev » Sat Sep 17, 2022 3:00 pm
Hello. How to change the color of the bar?
Code: Select all
bar value StaticValue(barvariable, 100):
xmaximum 80
ymaximum 20
color '#FFF' ???
background '#FFF' ???
Is it possible to use negative knowledge? I mean that progress does not start from 0, but let's say from 50 to 100?
-
Ocelot
- Eileen-Class Veteran
- Posts: 1882
- Joined: Tue Aug 23, 2016 10:35 am
- Github: MiiNiPaa
- Discord: MiiNiPaa#4384
-
Contact:
#2
Post
by Ocelot » Sat Sep 17, 2022 3:40 pm
Bar is an image. You change corresponding images or set bar to use other set of images.
More info in bar style properties:
https://www.renpy.org/doc/html/style_pr ... properties
Most bar objects allow to set a range of values they operate on.
< < insert Rick Cook quote here > >
Users browsing this forum: Bing [Bot], Google [Bot], Majestic-12 [Bot]