Main Menu Music
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.
-
Undead_Duck
- Newbie
- Posts: 1
- Joined: Thu Dec 05, 2013 8:00 am
- Contact:
Main Menu Music
I want to add music to my Menu and have done so however when i launch the project nothing plays in the menu. I've looked at a few similar questions but non are specific enough to be helpful. Can someone tell me exactly what to do? please :'(
- OokamiKasumi
- Eileen-Class Veteran
- Posts: 1779
- Joined: Thu Oct 14, 2010 3:53 am
- Completed: 14 games released -- and Counting.
- Organization: DarkErotica Games
- Deviantart: OokamiKasumi
- Location: NC, USA
- Contact:
Re: Main Menu Music
Is your music in a sub-folder inside the game folder?Undead_Duck wrote:I want to add music to my Menu and have done so however when i launch the project nothing plays in the menu. I've looked at a few similar questions but non are specific enough to be helpful. Can someone tell me exactly what to do? please :'(
-- if So, are you sure you included the name of the folder too?
-- if Not, are you sure you have the Exact name of the piece of music?
-- Are you sure you have quotation marks where they need to be?
If subfolder:
Code: Select all
config.main_menu_music = "music/zero-project - The mafia.mp3"
Code: Select all
config.main_menu_music = "zero-project - The mafia.mp3"
Ookami Kasumi ~ Purveyor of fine Smut.
Most recent Games Completed:
"No amount of great animation will save a bad story." -- John Lasseter of Pixar
Most recent Games Completed:
- The Walk[Psychological][NanoWinter] ~ PG New!
- Trap! [ModernFantasy][VN] ~ PG16
- The Adventures of Prince Ivan [Fant/Adv/VN] ~ PG
"No amount of great animation will save a bad story." -- John Lasseter of Pixar
- Donmai
- Eileen-Class Veteran
- Posts: 1919
- Joined: Sun Jun 10, 2012 1:45 am
- Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
- Projects: Slumberland
- Location: Brazil
- Contact:
Re: Main Menu Music
Adding to what Morgan said: in your options.rpy script you will find these lines:
You must uncomment the command line, removing the '#' character at the start:
Start your game now and the music should play (check on the preferences screen that the music volume isn't set to zero).
Code: Select all
## Music that is played while the user is at the main menu.
# config.main_menu_music = "main_menu_theme.ogg"Code: Select all
## Music that is played while the user is at the main menu.
config.main_menu_music = "my_music_theme.ogg"No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)
TOIRE NO HANAKO (A Story About Fear)
Re: Main Menu Music
Hello, guys! I set a sound for a main menu, as a guy above. So, sound works well, but when I start game, it still plays. How to make it stop after I start a game?
- Donmai
- Eileen-Class Veteran
- Posts: 1919
- Joined: Sun Jun 10, 2012 1:45 am
- Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
- Projects: Slumberland
- Location: Brazil
- Contact:
Re: Main Menu Music
Simply stopping it.
http://www.renpy.org/doc/html/audio.html#audio
Code: Select all
label start:
stop music fadeout 1.0No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)
TOIRE NO HANAKO (A Story About Fear)
Who is online
Users browsing this forum: span4ev
