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.
## Music that is played while the user is at the main menu.
if (persistent.finish == True):
config.main_menu_music = "tamskyatd.mp3"
else:
config.main_menu_music = None
But after the player finishes the game and goes back to the main menu, the music doesn't play.
But if I close the game and restart it *with the persistent data still in it*, the music works perfectly fine.
Any help would be greatly appreciated.
Thanks!
Last edited by AsHLeX on Fri Jul 25, 2014 10:24 pm, edited 1 time in total.
screen main_menu:
# all the stuff
on "show" action If("persistent.finish", Play("music", "tamskyatd.mp3", loop=True), Stop("music"))
on "hide" action Stop("music")
on "replaced" action Stop("music")