Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Extended Music Room for Ren'Py

Fully featured music room with improved usability and setup for Ren'Py. · By Feniks

Fading main menu music in/out when entering/exiting Music Room

A topic by Alusiren created Sep 19, 2024 Views: 92 Replies: 1
Viewing posts 1 to 2

Hi there,

I was wondering if there is a way to make it so when you enter the music room, the main menu music fades out to silence?

And vice versa, when you leave the music room, to return to the main menu music? 

Thank you in advanced! I love this music room. 

Developer(+1)

Sure thing! So, in your music room screen, add these lines:

screen music_room(mr):
    on 'replace' action Stop('music', fadeout=3.0) 
    on 'show' action Stop('music', fadeout=3.0) 
    on 'replaced' action Play('music', config.main_menu_music, fadein=3.0) 
    on 'hide' action Play('music', config.main_menu_music, fadein=3.0)

And that should cover most use cases! Feel free to adjust the fadein/out however you like.