[SOLVED]pausing and continuing music when saving and loading

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
rebellare
Regular
Posts: 34
Joined: Mon Nov 06, 2017 9:34 am
Contact:

[SOLVED]pausing and continuing music when saving and loading

#1 Post by rebellare »

Hey, if this was already answered somewhere, a link will do since I couldn't manage to find it myself.
What I'd like to do is:
When you save and then, later on, load a file, I want the bgm that was playing to keep playing.
I was thinking something like "on save Pause("music") and "on load Play("music")" though I'm pretty poor at figuring out how lines should actually be written without help and I don't know where to place those bits of code (my guess would be either in the options.rpy or in their respective screens in screens.rpy).
Last edited by rebellare on Mon Nov 26, 2018 8:15 am, edited 1 time in total.


rebellare
Regular
Posts: 34
Joined: Mon Nov 06, 2017 9:34 am
Contact:

Re: pausing and continuing music when saving and loading

#3 Post by rebellare »

Thanks, I got it to work!

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]