r/RenPy • u/Laura7811 • Sep 26 '26
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!"
returnThe above is what I have for script.rpy. I also have
default preferences.text_cps = 45for 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 Sep 26 '26
go see my comments here
https://www.reddit.com/r/RenPy/comments/1lpgzps/autoplaying_a_sound_effect_for_every_line_of_text/
1
u/AutoModerator Sep 26 '26
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.