I have a question which I've not been able to find an answer to on the forums. I saw this but an answer didn't seem to be found:
I'm wondering if you can play a bleep every time a word appears in the dialogue, so just like Ace Attorney when sometimes it will sound fast, and other times it will pause and be slower.Crazy Li wrote:To loop, just add in a Loop=True. So it becomes...AlfieMachica123 wrote:base from the code you have given me, where do i insert the loop?
and also, is it possible to make the sound play accordingly with every word (one word plays one beep sound)? just to make the sound not so constant, just like ace attorney., i hope you understand what i am trying to say here, thank you so much, opinion is much appreciated.Code: Select all
def beepy_voice(event, interact=True, **kwargs): if not interact: return if event == "show_done": renpy.sound.play("beeps.ogg") elif event == "slow_done": renpy.sound.stop()
Though that doesn't sync of with the word display, it just keeps repeating the sound until the text finishes displaying. If you can change your text speed to a CPS that makes one word appear at a time, it might get close.Code: Select all
def beepy_voice(event, interact=True, **kwargs): if not interact: return if event == "show_done": renpy.sound.play("beeps.ogg", loop=True) elif event == "slow_done": renpy.sound.stop()
I tried the usual method but it ocassionally crops the sound file awkwardly, making pop/ snap noises. It's not very nice