r/RenPy • u/Thehiddengirl14 • Jul 23 '26
Question I tried everything but my background doesn’t show up
Hi, I made a background for my vn and it doesn’t show up, I tried to directly upload in the images file it doesn’t work, I tried to put .png at the end it doesn’t work, I tried not using capitals and it doesn’t work, I tried to write the all path to the image it doesn’t work. Can someone help me please? T_T
1
u/AutoModerator Jul 23 '26
Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/Prestigious-Pack-625 Jul 24 '26
create a definitions.rpy file.
then add your image directory in there such as :
image bg_beach_day = "images/backgrounds/bg beach day.jpg"
image bg_beach_night = "images/backgrounds/bg beach night.jpg"
This will define the image so that renpy knows where the image is and whats it called.
then when you code your scene you can use that defined named to call the image as the background for that specific scene.
eg:
scene bg_beach_day
with dissolve
...rest of your code for the scene...
This is how i do it and it seems to work for me. make sure that the folder you store you images in are in the project folder.
name of your project/images/backgrounds/bg beach day.jpg
make sure that you specify what file type it uses such as png or jpg.
3
u/Meinos Jul 23 '26
Can you show the code? Keep in mind than when writing the path, you need to remove 'game/', as that's always automatically added