Subdirectories and audio in init blocks
Posted: Wed May 07, 2014 4:38 am
Ok, my questions are pretty much what the title says. I consulted both the Ren'py wiki and manual to no avail, and my inquiries are as follows:
1. Can I define my audio files in an init block (pretty much like images) so that I could only write play music x instead of play music "insertlongname.mp3" within the script?
2. How can I reference subdirectories within the game folder without writing something like this - "D:/Imagini/renpy-6.14.1-sdk/Work_in_progress/game/Graphics/Backgrounds/House.png" - in every single image definition I have? Same thing goes for sounds and music which are placed now inside /game/Audio/Sounds and /game/Audio/Music. (now you probably know why I want to define the audio in init blocks too...)
Isn't there any way to avoid this tedious work? I don't want my game directory to look like a recycle bin with pngs, oggs and rpys in the same fies-ridden folder, but I don't want to write whole directories throughout the whole script either, so help will be very appreciated!
1. Can I define my audio files in an init block (pretty much like images) so that I could only write play music x instead of play music "insertlongname.mp3" within the script?
2. How can I reference subdirectories within the game folder without writing something like this - "D:/Imagini/renpy-6.14.1-sdk/Work_in_progress/game/Graphics/Backgrounds/House.png" - in every single image definition I have? Same thing goes for sounds and music which are placed now inside /game/Audio/Sounds and /game/Audio/Music. (now you probably know why I want to define the audio in init blocks too...)
Isn't there any way to avoid this tedious work? I don't want my game directory to look like a recycle bin with pngs, oggs and rpys in the same fies-ridden folder, but I don't want to write whole directories throughout the whole script either, so help will be very appreciated!