Is it possible to have text wait for a sfx?

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
NadOtavlas
Regular
Posts: 38
Joined: Sat Apr 21, 2018 3:46 am
Contact:

Is it possible to have text wait for a sfx?

#1 Post by NadOtavlas »

What I mean is having the text box show up, but the text doesn't actually display until a sfx has finished playing. Is it possible to do this?

User avatar
SpicyMayo1429
Regular
Posts: 36
Joined: Tue Mar 20, 2018 11:23 am
Contact:

Re: Is it possible to have text wait for a sfx?

#2 Post by SpicyMayo1429 »

If it's something that isn't frequently happening, you could probably do something with the wait tag like this:

Code: Select all

## Sound effect plays here.
	  
character "{w=4}Whatever your text is."

## The {w} is the wait tag and the =4 is how long it waits for, in the example it waits for 4 seconds.
## You could change it's time to fit your sound effect, ie: if it's 2 seconds {w=2}

Post Reply

Who is online

Users browsing this forum: No registered users