[solved]Multiple image folders?
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.
[solved]Multiple image folders?
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.
- LateWhiteRabbit
- Eileen-Class Veteran
- Posts: 1867
- Joined: Sat Jan 19, 2008 2:47 pm
- Projects: The Space Between
- Contact:
Re: Multiple image folders?
You should be able to just add the folder to the file name when you call it in Ren'Py, like so:
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.
Code: Select all
define gui.game_menu_background = "gui/game_menu.png"
Re: Multiple image folders?
I kind of know I can do that.
The
won't work with this though, right? And I have to define each individual picture, that is just crazy.
The
Code: Select all
scene
-
- Regular
- Posts: 53
- Joined: Mon Nov 13, 2017 12:10 am
- Contact:
Re: Multiple image folders?
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.Deventh wrote: ↑Thu Nov 16, 2017 12:16 am I kind of know I can do that.
Thewon't work with this though, right? And I have to define each individual picture, that is just crazy.Code: Select all
scene
Re: Multiple image folders?
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
Who is online
Users browsing this forum: Majestic-12 [Bot], piinkpuddiin, snotwurm