Player Character Sprite not changing

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
DrowningPleaseSendH
Posts: 8
Joined: Tue Dec 14, 2021 12:27 am

Player Character Sprite not changing

Post 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.
Attachments
Actor_Portrait_in_actor_tab.jpg
Actor_Portrait_in_actor_tab.jpg (99.12 KiB) Viewed 368 times
Conversation_Display.jpg
Conversation_Display.jpg (118.52 KiB) Viewed 368 times
Player_Character_Sprite_not_changing.jpg
Player_Character_Sprite_not_changing.jpg (187.33 KiB) Viewed 368 times
NPC_Sprite_change_Demonstration.jpg
NPC_Sprite_change_Demonstration.jpg (184.24 KiB) Viewed 368 times
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Player Character Sprite not changing

Post 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)
DrowningPleaseSendH
Posts: 8
Joined: Tue Dec 14, 2021 12:27 am

Re: Player Character Sprite not changing

Post 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!
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Player Character Sprite not changing

Post 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?
DrowningPleaseSendH
Posts: 8
Joined: Tue Dec 14, 2021 12:27 am

Re: Player Character Sprite not changing

Post by DrowningPleaseSendH »

The actor in the current node is the player character and in the conversation action they are the Conversation Actor.
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Player Character Sprite not changing

Post 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.
DrowningPleaseSendH
Posts: 8
Joined: Tue Dec 14, 2021 12:27 am

Re: Player Character Sprite not changing

Post 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.
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Player Character Sprite not changing

Post 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.
DrowningPleaseSendH
Posts: 8
Joined: Tue Dec 14, 2021 12:27 am

Re: Player Character Sprite not changing

Post 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!
Post Reply