Page 1 of 1

Don't want to loop music on the title screen

Posted: Wed May 27, 2020 10:44 am
by wtfman
The title music can be set in options.rpy, like-

config.main_menu_music = "TITLE.MUSIC"

But this always seems to repeat. I want to use short music in about 30 seconds as a title, and don't want to loop. How should I do?

Re: Don't want to loop music on the title screen

Posted: Wed May 27, 2020 12:34 pm
by gas
Instead of using that variable, add this at the beginning of your script.

Code: Select all

label before_main_menu:
    play music "TITLE.MUSIC" noloop
    return

Re: Don't want to loop music on the title screen

Posted: Wed May 27, 2020 1:54 pm
by wtfman
Solved.
Thank you, it works perfectly.