Music doesn't play properly on load

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
Ace94
Regular
Posts: 113
Joined: Sat Apr 08, 2017 4:22 pm
Contact:

Music doesn't play properly on load

#1 Post by Ace94 »

Hi. I was curious as to why if I have a few different music tracks set at different parts of the game, whenever I "load" a part of the game where it should use the next track it just uses the very first one which I started the game with?

Like I have this at the very start:

Code: Select all

label start:
    scene black
    stop music fadeout 5.0
    
    play music "music/01.mp3" fadein 10.0
Right. So everything is fine here. Then we proceed to a different part of the game where I use the next one:

Code: Select all

label later:
    stop music fadeout 5.0
    
    play music "music/02.mp3" fadein 10.0
And it does work fine if you go through the game normally without stopping, however, if I load a save point after I've used "02.mp3" it will not play properly and instead it will play "01.mp3". Why is that?

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Nozori_Games