Setting up portraits in a character creator (visual novel)
Posted: Wed Jan 22, 2025 11:53 am
Hey Tony. I'm wondering what is the best way to approach custom player portraits for a VN.
Currently, I've set up my character creator so that the player can scroll through 5 different options for their portrait. I also have a script which sets an int "SelectedPortrait" to 1-5 depending on the portrait selected.
I'm foreseeing some issues when it comes to setting the portraits in dialogue and making sure the correct one shows up. It will also get more complicated when wanting to show different variations - Player_1_Happy, Player_1_Sad, etc.
I know this doesn't work because I just tried it, but is anything along these lines possible using the sequence field? You can probably see what I'm trying to do here.
Sequence: SetPortrait(Player, Player_["SelectedPortrait"]_Happy);
Thanks!
Currently, I've set up my character creator so that the player can scroll through 5 different options for their portrait. I also have a script which sets an int "SelectedPortrait" to 1-5 depending on the portrait selected.
I'm foreseeing some issues when it comes to setting the portraits in dialogue and making sure the correct one shows up. It will also get more complicated when wanting to show different variations - Player_1_Happy, Player_1_Sad, etc.
I know this doesn't work because I just tried it, but is anything along these lines possible using the sequence field? You can probably see what I'm trying to do here.
Sequence: SetPortrait(Player, Player_["SelectedPortrait"]_Happy);
Thanks!