Where to put music nor sound files?
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.
Where to put music nor sound files?
Tried creating a music folder on game directory of my project but didn't work, please help. ;D
- Aoi14
- Newbie
- Posts: 23
- Joined: Sun Dec 24, 2017 3:24 pm
- Projects: GuardianS X
- Location: Somewhere over the Rainbow
- Contact:
Re: Where to put music nor sound files?
If you asked script.rpy to run a music file, it would look for it in the same directory as script.rpy itself, which is the game folder.
I'd recommend putting music files in the game directory itself. However, if you want to make a music folder in the game directory and put all your files in there, you'd need to specify the path in your code- basically telling your computer where to look for the music files.
Hope this helps!
I'd recommend putting music files in the game directory itself. However, if you want to make a music folder in the game directory and put all your files in there, you'd need to specify the path in your code- basically telling your computer where to look for the music files.
Code: Select all
# If your file was in the game folder itself, you would simply need to do this in script.rpy:
play music "mozart.ogg"
# If your file is in your new Music folder in the game directory, try this:
play music "Music/mozart.ogg"
Working on VNs. As usual
Who is online
Users browsing this forum: Google [Bot]