Volume clause on play not valid?

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
User avatar
Karrion
Regular
Posts: 74
Joined: Fri Jan 18, 2019 8:33 pm
Projects: Murder on the Marine Express
Organization: 1564 Studio
itch: 1564-studio
Contact:

Volume clause on play not valid?

#1 Post 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?
1564 Studio, an indie studio dedicated to developing mystery VNs!
Follow us on Twitter for updates on our projects!

Image

Check out our current project, just released on PC, Android, Switch, XBox ONE/Series S/X and PS4/5!
Also available in Spanish, English, French and Japanese!

Image


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

Re: Volume clause on play not valid?

#3 Post 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.

Post Reply

Who is online

Users browsing this forum: Google [Bot]