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.
bDunks
Newbie
Posts: 21 Joined: Tue Jan 08, 2019 3:07 pm
Contact:
#1
Post
by bDunks » Tue Jan 08, 2019 11:10 pm
Right now I am trying to play a sound, then have dialog show up after. Not both at the same time.
I would like it to go like this.
Code: Select all
voice "sound/monster.mp3" #plays scary sound
b "What was that?!!!" #When audio completes, b says this.
Is there a way to do this without pause x?
Thank you.
Last edited by
bDunks on Tue Jan 08, 2019 11:53 pm, edited 1 time in total.
Imperf3kt
Lemma-Class Veteran
Posts: 3794 Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:
#2
Post
by Imperf3kt » Tue Jan 08, 2019 11:23 pm
Use the pause statement
Code: Select all
play sound "sound/monster.mp3"
$pause(1)
b "What was that?"
Adjust the number in the pause statement to adjust the wait time in seconds. So, for example, two and a half seconds would be $pause(2,5)
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project:
GGD Mentor
Twitter
bDunks
Newbie
Posts: 21 Joined: Tue Jan 08, 2019 3:07 pm
Contact:
#3
Post
by bDunks » Tue Jan 08, 2019 11:56 pm
Imperf3kt wrote: ↑ Tue Jan 08, 2019 11:23 pm
Use the pause statement
Code: Select all
play sound "sound/monster.mp3"
$pause(1)
b "What was that?"
Adjust the number in the pause statement to adjust the wait time in seconds. So, for example, two and a half seconds would be $pause(2,5)
Oops!
Forgot to put in the question how to do this without pause.
Have edited the post.
I guess now the more I think on it, it's not a big deal to do it this way.
Thank you.
It seems that this only works properly.
Code: Select all
play sound "sound/monster.mp3" #or voice "sound/monster.mp3"
$ renpy.pause(1)
b "What was that?"
Imperf3kt
Lemma-Class Veteran
Posts: 3794 Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:
#4
Post
by Imperf3kt » Wed Jan 09, 2019 12:40 am
I haven't used pause in a long time. It may be Pause instead (capital P)
If you wish to avoid using pause, you can achieve a similar result with the wait text tag
Code: Select all
play sound "mysound.mp3"
b "{w=1.0}What was that?"
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project:
GGD Mentor
Twitter
bDunks
Newbie
Posts: 21 Joined: Tue Jan 08, 2019 3:07 pm
Contact:
#5
Post
by bDunks » Wed Jan 09, 2019 8:52 am
Imperf3kt wrote: ↑ Wed Jan 09, 2019 12:40 am
I haven't used pause in a long time. It may be Pause instead (capital P)
If you wish to avoid using pause, you can achieve a similar result with the wait text tag
Code: Select all
play sound "mysound.mp3"
b "{w=1.0}What was that?"
I had not seen that yet.
Thank you!
Users browsing this forum: Semrush [Bot] , voluorem