Page 1 of 1

Player Character Sprite not changing

Posted: Wed Dec 15, 2021 4:46 pm
by DrowningPleaseSendH
been attempting to change the player characters sprite and nothing seems to be working. I managed to be able to freely change the npc characters sprite with no problems but no matter what I do the player characters sprite wont change. I used [pic=x] and SetPortrait(x) to change the sprite and while it works for the NPCs it doesn’t change the players sprite.
hope theirs something simple I’m missing.

Re: Player Character Sprite not changing

Posted: Wed Dec 15, 2021 5:40 pm
by Tony Li
Hi,

As a test, try these settings on the Dialogue Manager:
  • Subtitle Settings > Show PC Subtitles During Line: ticked
  • Input Settings > Always Force Response Menu: UNticked
It will show the PC's lines as subtitles instead of response menus since there's only one PC node at a time.

If that works, then try moving this command to the "Player: start" node's Sequence: SetPortrait(Player, pic=2)

Re: Player Character Sprite not changing

Posted: Thu Dec 16, 2021 3:38 am
by DrowningPleaseSendH
So it seems to be working! I do have a small issue though. I can’t seem to to get the change to work on the same node like I can with the NPCs but I just create an empty node put the [auto] tag on it and set the sequence to None() and SetPortrait(Player, pic=1). If there’s any better way to do this I would greatly appreciate it. But still I’m super happy about the fix! Thank you so much!

Re: Player Character Sprite not changing

Posted: Thu Dec 16, 2021 9:41 am
by Tony Li
Hmm, it should update the player the same as the NPC. Is the player the speaker or listener of the current dialogue entry?

Re: Player Character Sprite not changing

Posted: Thu Dec 16, 2021 3:25 pm
by DrowningPleaseSendH
The actor in the current node is the player character and in the conversation action they are the Conversation Actor.

Re: Player Character Sprite not changing

Posted: Thu Dec 16, 2021 5:46 pm
by Tony Li
If you'd like to investigate this further, would you please send a reproduction project to tony (at) pixelcrushers.com? I'm not sure how to reproduce it otherwise.

Re: Player Character Sprite not changing

Posted: Thu Dec 16, 2021 6:52 pm
by DrowningPleaseSendH
I’m pretty new to Unity so I don’t really know how to do that :\ I looked over some stuff online but I’m still not sure how.

Re: Player Character Sprite not changing

Posted: Thu Dec 16, 2021 9:23 pm
by Tony Li
Just zip up your project's Assets, Packages, and ProjectSettings folders, and send the zip file to tony (at) pixelcrushers.com. It'll probably be too big to attach to an email, but you can use a file sharing service like Google Drive or Dropbox.

Again -- only if you want to investigate further. If you'd prefer to continue with your current solution and move on to other things in your game, that's fine, too.

Side note: Remember to make regular backups of your project or, better yet, set up version control.

Re: Player Character Sprite not changing

Posted: Thu Dec 16, 2021 10:55 pm
by DrowningPleaseSendH
I’m in a bit of a time crunch so for now I’ll use my own fix. But in the future I’ll be sure to troubleshoot more thoroughly. Thanks for the help!