Page 1 of 1
Changing Portraits Through The Conversation?
Posted: Tue Dec 10, 2024 6:10 am
by gamingdebugged
Hi All,
I just wondered if you can change the character portrait during the conversation. I would like to swap the pose/expression as the NPC says different lines. Do I have to use animated portraits or is there a simple way to switch the image?
Thanks
Re: Changing Portraits Through The Conversation?
Posted: Tue Dec 10, 2024 7:03 am
by Tony Li
Hi,
In the Dialogue Editor, assign portraits to the actor's Portrait Sprites list. Note their portrait number (1, 2, 3, etc.). By default, conversations will show portrait sprite 1. In Dialogue Text, include [pic=#]
markup tags to show a different portrait sprite. For example, if portrait 2 is a smiling image:
- Dialogue Text: "Yay! Happy day! [pic=2]"
To change the portrait sprite permanently (or for the duration of the conversation if your actor isn't associated with a Dialogue Actor component), use the
SetPortrait() sequencer command.
Re: Changing Portraits Through The Conversation?
Posted: Tue Dec 10, 2024 10:45 am
by gamingdebugged
Amazing! Thank you!!
Re: Changing Portraits Through The Conversation?
Posted: Tue Dec 10, 2024 11:18 am
by Tony Li
Glad to help!