Is it possible to have a sound effect be -a part- of a custom transition? Now, I tried putting the sound the trans. before, and after the trans., and it sounds late/random... I'd like to have it DURING the transition (which, if you're curious, I'm using the Flash one in the Cookbook), so is there a way to do that? Maybe there's something I overlooked, I'm not that familiar with Ren'Py.
Thanks!
Sound during Transition?
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.
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.
Re: Sound during Transition?
Strange. Playing the sound just before the transition should work :
This should start playing the sound and immediately start the transition. If the sound is constantly late (try rolling back and going through the transition again multiple times and see if it always plays with the same delay), it means you should edit the sound and remove possible silence at its beginning.
If the delay is variable, though, it might be a Ren'Py issue which I can't remember wether it was solved or not at some point (I think it was but...)
Code: Select all
$ renpy.play("somesound.wav")
scene bg market
show marie
with flash
If the delay is variable, though, it might be a Ren'Py issue which I can't remember wether it was solved or not at some point (I think it was but...)
Re: Sound during Transition?
Oh! That works! Thank you!
Maybe it was because I was using that "play sound" thing...is there a difference, or is it pretty much different in name only?
Regardless, thank you for that!
Maybe it was because I was using that "play sound" thing...is there a difference, or is it pretty much different in name only?
Regardless, thank you for that!
- PyTom
- Ren'Py Creator
- Posts: 16096
- 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: Sound during Transition?
There shouldn't be any difference between play sound and renpy.sound.play. They're different ways of accomplishing the same thing, with the former preferred.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
Who is online
Users browsing this forum: Google [Bot]