[solved]Multiple image folders?

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.
Post Reply
Message
Author
Deventh
Newbie
Posts: 16
Joined: Tue Oct 31, 2017 9:52 am
Contact:

[solved]Multiple image folders?

#1 Post by Deventh »

Can this be done? When I add a scene it takes the image from the /image/ folder and that is it. But it's getting clustered in there. How can I add different folders so that the scene can detect them?
Last edited by Deventh on Thu Nov 16, 2017 10:07 am, edited 1 time in total.

User avatar
LateWhiteRabbit
Eileen-Class Veteran
Posts: 1867
Joined: Sat Jan 19, 2008 2:47 pm
Projects: The Space Between
Contact:

Re: Multiple image folders?

#2 Post by LateWhiteRabbit »

You should be able to just add the folder to the file name when you call it in Ren'Py, like so:

Code: Select all

define gui.game_menu_background = "gui/game_menu.png"
So you could have a separate folder for sprites, and one for backgrounds or menus. Just "folder_name/file_name.file_type" where ever you want to call it in your script file.

Deventh
Newbie
Posts: 16
Joined: Tue Oct 31, 2017 9:52 am
Contact:

Re: Multiple image folders?

#3 Post by Deventh »

I kind of know I can do that.
The

Code: Select all

scene
won't work with this though, right? And I have to define each individual picture, that is just crazy.

ArcialIntegra
Regular
Posts: 53
Joined: Mon Nov 13, 2017 12:10 am
Contact:

Re: Multiple image folders?

#4 Post by ArcialIntegra »

Deventh wrote: Thu Nov 16, 2017 12:16 am I kind of know I can do that.
The

Code: Select all

scene
won't work with this though, right? And I have to define each individual picture, that is just crazy.
I just tested. It does work. Mind pasting your traceback error? If you're using a jpeg, be sure to use the right file extension. There's both .jpg and .jpeg. While they are effectively the same thing, Ren'Py sees them as different.

philat
Eileen-Class Veteran
Posts: 1900
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: Multiple image folders?

#5 Post by philat »


Deventh
Newbie
Posts: 16
Joined: Tue Oct 31, 2017 9:52 am
Contact:

Re: Multiple image folders?

#6 Post by Deventh »

This is kind of what I wanted:

This process place in all directories underneath the image directory. For example, all of these files will define the image eileen happy:

Code: Select all

game/images/eileen happy.png
game/images/Eileen Happy.jpg
game/images/eileen/eileen happy.png
The last code in particular. To separate images in different folders.

Post Reply

Who is online

Users browsing this forum: No registered users