Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

Hi there, Its been some months so you might have found a solution to this already, but here's how I combined multiple callbacks into one!

init python:
    def beepyvoice(event, interact=True, **kwargs):
        if not interact:
            return
        if event == "show_done":
            renpy.sound.play("callback.wav", channel="beep", loop=True)
        elif event == "slow_done" or event == "end":
            renpy.sound.stop(fadeout=1, channel="beep")
    def callbackcontinue(ctc, **kwargs):
        if ctc == "end":
            renpy.music.play("next.mp3",channel="sound")
    def Dialogue_Gap(event,pause=0.3,**kwargs):
        if event == "begin":
            renpy.pause(pause)
    # This is the one that combines the three callbacks into one vvv
    def callbacks(event, **kwargs):
        for callback in (beepyvoice, callbackcontinue, Dialogue_Gap):
            callback(event, **kwargs)
#Then, my character definition:
define n = Character("Nori Kamo", callback=callbacks)