Where to put music nor sound files?

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
Rexerage
Newbie
Posts: 2
Joined: Sun Dec 31, 2017 5:04 am
Contact:

Where to put music nor sound files?

#1 Post by Rexerage »

Tried creating a music folder on game directory of my project but didn't work, please help. ;D

User avatar
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?

#2 Post by Aoi14 »

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.

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"
Hope this helps! :D
Working on VNs. As usual :P

Post Reply

Who is online

Users browsing this forum: Google [Bot]