-
Hey, I was wondering if there was a way to display an animated sprite of a character's mouth moving for when dialogue is actively being typed in a box, and having it switch to a different "silent" character sprite when the dialogue box is finished displaying all of the text. Something like Phoenix Wright or 999 visually. I'm sorry if I'm not very eloquent, but I really feel this little bit of animation will go a long way in bringing my characters to life. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hello, yes, this can be done via custom portrait scenes: https://docs.dialogic.pro/custom-portraits.html I use text_finished, about_to_show_text, and continued_revealing_text. My portraits start talking when Last but not least, you can use the Let me know if this helps! |
Beta Was this translation helpful? Give feedback.
Hello, yes, this can be done via custom portrait scenes: https://docs.dialogic.pro/custom-portraits.html
I use text_finished, about_to_show_text, and continued_revealing_text.
My portraits start talking when
about_to_show
fires and finishes talking whentext_finished
is emitted.I use a mouth layer that occurs above my base sprite layer, the mouth sprite is an animation sheet and I use Godot's
Sprite2D
for this.Last but not least, you can use the
_unhighlight
and_highlight
base methods on theDialogicPortrait
to identify which character is speaking and prevent others from animating their mouth.Let me know if this helps!