Page 1 of 1

[SOLVED]Sound Effect When Dialog Advances?

Posted: Mon Sep 18, 2017 10:35 pm
by Braydxne
What I want to do is have a simple sound effect play each time the dialog is advanced. (The player clicks/presses space and a little 'blip' is heard. Like in Danganronpa. (and im sure many other vns)It seems pretty simple to explain but it seems no one else has asked about it. (I'm aware I could just use play sound after each line of dialog but that seems rather tedious and i'm sure there has to be a better solution.)

Re: Sound Effect When Dialog Advances?

Posted: Mon Sep 18, 2017 10:56 pm
by Divona

Code: Select all

init python:
    def dismiss_callback():
        renpy.play("sound.ogg")
        return True

    config.say_allow_dismiss = dismiss_callback

Re: Sound Effect When Dialog Advances?

Posted: Mon Sep 18, 2017 11:41 pm
by Braydxne
Thank you so much, you're amazing!