Stop sounds after clicking (solved)

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
Schnauzer
Regular
Posts: 35
Joined: Mon May 04, 2009 6:08 pm
Location: Bucaramanga, Colombia
Contact:

Stop sounds after clicking (solved)

#1 Post by Schnauzer »

My project requires my voice reading all sentences so when I wanto to fast forward (click a lot to reach a specific point) I heard my voice remixed.

How can I stop sounds when I click to go forward? (Thank you)
Last edited by Schnauzer on Fri Jan 15, 2010 5:42 pm, edited 1 time in total.

User avatar
PyTom
Ren'Py Creator
Posts: 16097
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Stop sounds after clicking

#2 Post by PyTom »

Are you using the voice command? It should automatically stop voices when the user clicks.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Schnauzer
Regular
Posts: 35
Joined: Mon May 04, 2009 6:08 pm
Location: Bucaramanga, Colombia
Contact:

Re: Stop sounds after clicking

#3 Post by Schnauzer »

No, I'm using the "play sound" command.

How can I use the voice command or what is its correct sintax? Do I have to write "play voice" and then the file? (Thanks)

Bocom
Newbie
Posts: 23
Joined: Sat Aug 08, 2009 2:06 pm
Projects: Yeah, 6-7 or more... <_<
Location: Sweden
Contact:

Re: Stop sounds after clicking

#4 Post by Bocom »

Voice Support in the manual.

To use it, just use

Code: Select all

voice "line1.ogg"
e "This is my first line, and it's spoken out loud!"

e "I am now being quiet... sort-of!"

"What she means is that she isn't talking, but the text is there!"

voice "lineo9k.ogg"
e "I talk too much!"
You can also replay the same voice again by using the sustain command as such

Code: Select all

voice sustain
e "And now I'm repeating my previous line!"

Schnauzer
Regular
Posts: 35
Joined: Mon May 04, 2009 6:08 pm
Location: Bucaramanga, Colombia
Contact:

Re: Stop sounds after clicking

#5 Post by Schnauzer »

So I must write:

voice sustain

And then the name of the file again?

Bocom
Newbie
Posts: 23
Joined: Sat Aug 08, 2009 2:06 pm
Projects: Yeah, 6-7 or more... <_<
Location: Sweden
Contact:

Re: Stop sounds after clicking

#6 Post by Bocom »

You only need to write a new filename when you want to play another file. If you put sustain instead of a filename, it will repeat the last line.

Another example

Code: Select all

voice "line23.ogg"
e "I'm the heroine, of course I have a lot of things to say!"

voice sustain
e "Repeating myself to make you understand the truth of my previous statement!"

voice "line34.ogg"
e "NO, I REFUSE TO FOLLOW RULE 34!"

voice sustain
e "Repeating so that you'll understand that fact!!"

Post Reply

Who is online

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