In the new(-ish) Ren'Py when you start a game, it creates GUI images for you with the colors you select and puts them in the gui directory. It seems like it would be easier and take less space to just use Frame(Solid(whatever_color)) instead. Then if you wanted to change colors later it would not have to regenerate all the images, but could just change some color values in a file.
So I'm guessing there's some reason for doing this. Is it to have some dummy images so game creators can easily plop in their own graphics files? Or is it faster to load images from disk instead of generating them every time?
I'm asking because I'm using a lot of bars in my game (right now using Frame(Solid(color))) and I want them to be efficient.
Why does Ren'Py create image files for GUI?
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.
-
- Lemma-Class Veteran
- Posts: 2299
- Joined: Mon Feb 06, 2012 9:50 pm
- Completed: Icebound, Selenon Rising Ep. 1-2
- Projects: Selenon Rising Ep. 3-4
- Organization: Fastermind Games
- Deviantart: sundownkid
- Location: NYC
- Contact:
Re: Why does Ren'Py create image files for GUI?
I'm guessing it's for ease of swapping out or editing GUI elements for people who aren't that great at programming Screen Language.
In terms of efficiency... I doubt it will make a smidgen of difference in performance.
In terms of efficiency... I doubt it will make a smidgen of difference in performance.
- PyTom
- Ren'Py Creator
- Posts: 16088
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: Why does Ren'Py create image files for GUI?
This is the reason. Solid is faster, but it's way easier to say "Replace the bar image" than walking through people through a ton of screen language before they can do that. The bars are a little on the big side of this reason - I want to have more space for different kinds of replacements.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
- qirien
- Miko-Class Veteran
- Posts: 541
- Joined: Thu Jul 31, 2003 10:06 pm
- Organization: Metasepia Games
- Deviantart: qirien
- Github: qirien
- itch: qirien
- Location: New Mexico, USA
- Discord: qirien
- Contact:
Re: Why does Ren'Py create image files for GUI?
OK, thank you! I have to remember most people aren't coming from a programming background...
Who is online
Users browsing this forum: Bing [Bot], Google [Bot], Semrush [Bot]