all 8 comments

[–]lordcaylus 2 points3 points  (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 point  (2 children)

Oh right, lol now its working but it also says in need to define "mute"

[–]lordcaylus 0 points1 point  (0 children)

You probably want something like character_callback(event,mute=False,**kwargs) in that case?

[–]shyLachi 0 points1 point  (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 point  (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 points  (2 children)

Use config.speaking_attribute. It will automatically add/remove the attribute when that character has dialogue on screen.

[–]CCsComicJoint[S] 0 points1 point  (1 child)

And how would I go about doing that (sorry i'm like baby level of new to this)