play different menu music after you beat the game (solved)

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.
Post Reply
Message
Author
BreathingColors
Newbie
Posts: 8
Joined: Sun Jul 16, 2017 2:30 pm
Tumblr: BreathungColorsDraws
Deviantart: JewelBreathingColors
Contact:

play different menu music after you beat the game (solved)

#1 Post by BreathingColors »

I've tried a few solutions but it only seems to play which ever one is on the bottom.
I also tried using default instead for the first song and define for the one after you beat the game. but it wouldn't let me use default.
I did this kinda code for the main menu image too which seems fine, it's just the song that's not doing it.

Code: Select all

if persistent.void:
    define config.main_menu_music = "Music/premonition/premonition.mp3"
if not persistent.void:
    define config.main_menu_music = "Music/Empty House/Empty House.mp3"

Code: Select all

if persistent.void:
    define config.main_menu_music = "Music/premonition/premonition.mp3"
else:
    define config.main_menu_music = "Music/Empty House/Empty House.mp3"

Code: Select all

if persistent.void:
    define config.main_menu_music = "Music/premonition/premonition.mp3"
elif not persistent.void:
    define config.main_menu_music = "Music/Empty House/Empty House.mp3"

Code: Select all

define config.main_menu_music = "Music/Empty House/Empty House.mp3"
if persistent.void:
    define config.main_menu_music = "Music/premonition/premonition.mp3"
Last edited by BreathingColors on Wed Jan 09, 2019 10:15 pm, edited 1 time in total.

User avatar
IrinaLazareva
Veteran
Posts: 399
Joined: Wed Jun 08, 2016 1:49 pm
Projects: Legacy
Organization: SunShI
Location: St.Petersburg, Russia
Contact:

Re: play different menu music after you beat the game

#2 Post by IrinaLazareva »

one of several possible decisions:

Code: Select all

define config.main_menu_music = "Music/premonition/premonition.mp3" if persistent.void else "Music/Empty House/Empty House.mp3"
(the effect will be reached after restart)

Post Reply

Who is online

Users browsing this forum: Google [Bot], voluorem