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.
Hello everyone. I have a textbutton with style_prefix "check" and activate_sound in it. However, I would like to have two different sounds, one when I activate the option and one when I deactivate it. Let me explain better :
When I click on "Unseen text" a check appears next to it and when I click again, it disappears. I would like a sound for when I turn it on and a different one for when I turn it off. Please forgive my English and thanks to anyone who can help me out!
There are different ways of doing it, some examples following. You don't have to write the full file name by the way, if it's a unique name. Renpy automatically detects audio files inside the "audio" folder and puts them into the audio object, stripping the extension (see second example).