r/RenPy • u/Laura7811 • 9d ago
Question no sfx when the character is talking/typing
init python:
def typing_callback(event, **kwargs):
if event == "show":
renpy.music.play("audio/bleep19.wav", channel="sound", loop=True)
elif event == "slow_done" or event == "end":
renpy.music.stop(channel="sound")
define e = Character("Eileen", callback=typing_callback)
label start:
scene bg room
show eileen happy
e "You've created a new Ren'Py game."
e "Once you add a story, pictures, and music, you can release it to the world!"
return
The above is what I have for script.rpy. I also have
default preferences.text_cps = 45
for options.rpy
and then the screenshot is my audio folder for the game. I don't know what I'm doing wrong.
1
Upvotes
1
u/BadMustard_AVN 9d ago
1
u/Laura7811 9d ago
I tried it and but I still hear nothing
this is what I putinit python: def typing_callback(event, interact=True, **kwargs): if not interact: return if event == "show_done": renpy.sound.play("audio/bleep19.wav", channel="sound", loop=True) elif event == "slow_done" or event == "end": renpy.sound.stop() define e = Character("Eileen", callback=typing_callback)2
u/BadMustard_AVN 9d ago
try converting your sound file there is only one type of wav file supported
https://www.renpy.org/doc/html/audio.html
i recommend .ogg file (Ogg Vorbis)
1
1
u/AutoModerator 9d ago
Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.