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.
In my preferences menu I want to make the labels for the options into images instead of text. So for example the default code where you can change the game from fullscreen to window mode is
so where the label would normally appear I want to place an image that would work as a label. I tried defining the image and using "show" but I get this error:
Alaspooralice wrote: ↑Wed Jan 03, 2024 11:11 pm
Basically I just commented out the label and put "show display" in the same spot after defining the image and it didn't work so now I'm confused.
I'm not confused, because as the error says, "show" is not a valid statement inside a screen. Here is what you can put inside a screen: https://www.renpy.org/doc/html/screens.html
To add an image to a screen, you have to use the keyword "add". The keyword "show" relates to images shown as part of labels.
Alaspooralice wrote: ↑Wed Jan 03, 2024 11:11 pm
Basically I just commented out the label and put "show display" in the same spot after defining the image and it didn't work so now I'm confused.
I'm not confused, because as the error says, "show" is not a valid statement inside a screen. Here is what you can put inside a screen: https://www.renpy.org/doc/html/screens.html
To add an image to a screen, you have to use the keyword "add". The keyword "show" relates to images shown as part of labels.