Making background noise stop when characters speak?
Posted: Sat Feb 13, 2016 8:43 pm
Unfortunately, I could not think of a way this question would make sense out of context, so I should say that this is regarding my 18+ WiP. I was unsure if questions involving adult content were allowed here, but there isn't a section for technical questions under the adult board. For caution's sake I will spoiler tag the following problem. Please remove or relocate the thread if appropriate.
~Shoji~
While coding a scene for the demo of my game Cult of the Lily, I ran into an unexpected problem. The scene is voiced, and the voice actress provided some sexy vocalizations as well as the lines of dailogue. What I want to happen is for the vocalisations to play under the narration on a loop, only stopping when the character speaks a line of dialogue. What happens instead is that the sexy sounds play under the dialogue, which is very distracting. The looping is easy, but the only way I can get the general effect I want is to start and stop the recording with each line of dialogue, which seems needlessly difficult.
I have the sounds in a separate "voice" channel called "hentai". Here is an example of what the script looks like:
Options
Script
This seems to be standard in most mainstream eroge, but I am completely lost on how to do it. I have not been able to find a similar problem posted here, but I never know exactly what to look up. Forgive me if there is already an answer to this somewhere, and kindly link me to it. Also, please let me know if any more information is needed.
Thank you!I have the sounds in a separate "voice" channel called "hentai". Here is an example of what the script looks like:
Options
Code: Select all
renpy.music.register_channel("hentai", "voice", True)Code: Select all
voice "Voice_file_9.wav"
su "Blablabla I am an example"
play hentai "Sexy_voice_file_1.wav"
voice "Voice_file_9.wav
su "More examples"~Shoji~