This page is out of date

You've reached a page on the Ren'Py wiki. Due to massive spam, the wiki hasn't been updated in over 5 years, and much of the information here is very out of date. We've kept it because some of it is of historic interest, but all the information relevant to modern versions of Ren'Py has been moved elsewhere.

Some places to look are:

Please do not create new links to this page.


Expanded Text Bleeps

The FAQ describes the process of adding text bleeps to a visual novel. However, this method is simplified and only includes one type of bleep. Adding multiple types of sounds for different characters is slightly more complicated.

First use this code:

init python:
    def low_beep(event, **kwargs):
        if event == "show":
            renpy.music.play("low_beep.ogg", channel="sound", loop=True)
        elif event == "slow_done" or event == "end":
            renpy.music.stop(channel="sound")

    def mid_beep(event, **kwargs):
        if event == "show":
            renpy.music.play("mid_beep.ogg", channel="sound", loop=True)
        elif event == "slow_done" or event == "end":
            renpy.music.stop(channel="sound")

    def high_beep(event, **kwargs):
        if event == "show":
            renpy.music.play("high_beep.ogg", channel="sound", loop=True)
        elif event == "slow_done" or event == "end":
            renpy.music.stop(channel="sound")

As you can see, you require three types of beeps, going from low to high-pitched.

Then, define your characters, labeling their callback according to their voices.

 define pw = Character("Phoenix Wright", callback=mid_beep)
 define m = Character("Maya Fey", callback=high_beep)
 define g = Character("Detective Gumshoe", callback=low_beep)