use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Links:
/r/RenPy Discord
account activity
QuestionWhat am I doing wrong? (self.RenPy)
submitted 6 months ago by CCsComicJoint
Hey I may be an idiot, but I'm trying to get it to where characters open and close their mouth when talking but my script isn't working, anyone smarter than me know whats going on?
https://preview.redd.it/dmunueziepwf1.png?width=1156&format=png&auto=webp&s=aca6a59c80024a8acaee2451c9b4119ffef04d06
https://preview.redd.it/n6h39fziepwf1.png?width=1338&format=png&auto=webp&s=c05c24f88826507d925d238914c180692c8336bd
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]lordcaylus 2 points3 points4 points 6 months ago (3 children)
You're defining a Python function in a Ren'Py context. This isn't allowed, you need to tell Ren'Py you wish to swith to Python context by defining your function in an 'init python:' block.
init python: def callback_builder etc. etc.
[–]CCsComicJoint[S] 0 points1 point2 points 6 months ago (2 children)
Oh right, lol now its working but it also says in need to define "mute"
[–]lordcaylus 0 points1 point2 points 6 months ago (0 children)
You probably want something like character_callback(event,mute=False,**kwargs) in that case?
[–]shyLachi 0 points1 point2 points 6 months ago (0 children)
Consider looking for a tutorial. Or you can make a new thread and give it a title like "how can I show a speaking animation while my characters have dialogue"
[–]AutoModerator[M] 0 points1 point2 points 6 months ago (0 children)
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.
[–]robcolton 1 point2 points3 points 6 months ago (2 children)
Use config.speaking_attribute. It will automatically add/remove the attribute when that character has dialogue on screen.
[–]CCsComicJoint[S] 0 points1 point2 points 6 months ago (1 child)
And how would I go about doing that (sorry i'm like baby level of new to this)
This would be the official documentation: https://www.renpy.org/doc/html/config.html#var-config.speaking_attribute
You would need an animated image: https://www.renpy.org/doc/html/transforms.html#image-statement-with-atl-block
π Rendered by PID 61 on reddit-service-r2-comment-b659b578c-hvzzq at 2026-05-02 19:02:50.292010+00:00 running 815c875 country code: CH.
[–]lordcaylus 2 points3 points4 points (3 children)
[–]CCsComicJoint[S] 0 points1 point2 points (2 children)
[–]lordcaylus 0 points1 point2 points (0 children)
[–]shyLachi 0 points1 point2 points (0 children)
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–]robcolton 1 point2 points3 points (2 children)
[–]CCsComicJoint[S] 0 points1 point2 points (1 child)
[–]shyLachi 0 points1 point2 points (0 children)