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 have a a simple scene line of code that seemingly does not work correctly when using caps. It was showing a grey screen instead and the image name on top.
image name: GTFO_You_1.png
But when I renamed it to all lower case it then worked correctly by properly displaying my image. Why is that? Is it a bug or something?
image name renamed: gtfo_you_1.png
I have a a simple scene line of code that seemingly does not work correctly when using caps. It was showing a grey screen instead and the image name on top.
image name: GTFO_You_1.png
But when I renamed it to all lower case it then worked correctly by properly displaying my image. Why is that? Is it a bug or something?
image name renamed: gtfo_you_1.png
"Ren'Py searches for image files in the images directory, which can be found by selecting "images" in the "Open Directory" section of the launcher. Ren'Py expects character art to be an PNG or WEBP file, while background art should be a JPG, JPEG, PNG, or WEBP file. The name of a file is very important – the extension is removed, the file name is forced to lowercase, and that's used as the image name."
Note that you can have higher-case letters in the file name, but need to use lower-case when showing the image.
Is there a reason to prefer defining the images? Is it more reliable? I don't know much about this Ren'py game engine.
Also for my scene images that use the auto definitions. In order to for the image to show without a dialog box do I have to use pause right beneath the image so that it doesn't show the dialog box?
Manual image definition (a) reliable: you know exactly what you have and don't have to remember automatic definition rules. (b) Provides you with control point for that image. If you later deside that image needs some changes you can do in engine, you will know, where to make them. (c) You have a list of used images in your project.
You can use scene statement (it autohides everything else, though), it does hide window automatically, but it will not pause afterward, so you will see image without textbox for a moment, and then whatever is next will start executing. If it is say statement, it obviously will pull up the textbox.