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.
I search on the doc but there are no example of colored (no image) bar animated value.
I have this overlay,
I want life in red and mana in blue, i cant add the color argument... How can i do this simply ?
Ren'py does not "color" bars without images. All bars are images. The default theme bars are also images, just colored using Ren'py's internal processes. AnimatedValue is just a value for a bar -- it uses the same bar styles so chance the bar style and the AnimatedValue will just animate whatever that style is. Therefore, probably the simplest solution is simply to create your own bar images in the colors that you want and apply them to your bars.
That said, you can also mimic the Ren'py theme styler and tint a greyscale bar if you prefer -- this will also entail choosing that greyscale bar image, however. This is old code from the legacy gui, and I haven't poked around the new gui to see what the default bar images are, but hopefully it will give you enough hints to get you going. viewtopic.php?f=8&t=33915#p385437