Page 1 of 1

Volume clause on play not valid?

Posted: Sat May 01, 2021 1:30 pm
by Karrion
I was trying to modulate the volume of some music during the game by adding the volume clause to the play statement and got this error:

Image

I tried different numbers from 0 to 2 and none work. Anyone knows why that is?

Re: Volume clause on play not valid?

Posted: Sat May 01, 2021 4:53 pm
by Andredron

Re: Volume clause on play not valid?

Posted: Sun May 02, 2021 3:27 pm
by IrinaLazareva
Karrion wrote:
Sat May 01, 2021 1:30 pm
I tried different numbers from 0 to 2 and none work. Anyone knows why that is?
Your code is correct (1.0 is max). I assume you are using an old version of the launcher. This feature was added relatively recently..

https://www.renpy.org/doc/html/changelo ... cellaneous
It is now possible to specify a relative audio channel whenever an audio is file is played, using the new volume clause to play and queue.