Volume on rollback or 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
RewindTheGame
Regular
Posts: 54
Joined: Thu Dec 31, 2020 3:37 pm
Contact:

Volume on rollback or load

#1 Post by RewindTheGame »

I've noticed in my game, that if I use the volume clause on the end of a play sound command, the volume is not respected during rollback or when loading.

For example, if I say

play music "sounds/wind.mp3" volume 0.2

and then save the game while the wind is quietly blowing in the background, then the wind will suddenly be full volume and drown out all the voices and other sounds as soon as that game is loaded. If I then rollback one line, the correct volume will return but then seemingly randomly jump between soft and loud. It doesn't seem as though the volume is saved as part of the save system. Or am I missing something?

Is there a workaround?

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]