Page 1 of 1

Main Menu Music

Posted: Thu Dec 05, 2013 8:04 am
by Undead_Duck
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 :'(

Re: Main Menu Music

Posted: Thu Dec 05, 2013 8:36 am
by OokamiKasumi
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 :'(
Is your music in a sub-folder inside the game folder?
-- 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"
If Not subfolder:

Code: Select all

    config.main_menu_music = "zero-project - The mafia.mp3"

Re: Main Menu Music

Posted: Thu Dec 05, 2013 8:56 am
by Donmai
Adding to what Morgan said: in your options.rpy script you will find these lines:

Code: Select all

## Music that is played while the user is at the main menu.

    # config.main_menu_music = "main_menu_theme.ogg"
You must uncomment the command line, removing the '#' character at the start:

Code: Select all

## Music that is played while the user is at the main menu.

    config.main_menu_music = "my_music_theme.ogg"
Start your game now and the music should play (check on the preferences screen that the music volume isn't set to zero).

Re: Main Menu Music

Posted: Sun Apr 12, 2015 1:53 am
by kamti
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?

Re: Main Menu Music

Posted: Sun Apr 12, 2015 9:36 am
by Donmai
Simply stopping it.

Code: Select all

label start:
    stop music fadeout 1.0
http://www.renpy.org/doc/html/audio.html#audio