Player Character Sprite not changing
-
- Posts: 8
- Joined: Tue Dec 14, 2021 12:27 am
Player Character Sprite not changing
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.
hope theirs something simple I’m missing.
- Attachments
-
- Actor_Portrait_in_actor_tab.jpg (99.12 KiB) Viewed 399 times
-
- Conversation_Display.jpg (118.52 KiB) Viewed 399 times
-
- Player_Character_Sprite_not_changing.jpg (187.33 KiB) Viewed 399 times
-
- NPC_Sprite_change_Demonstration.jpg (184.24 KiB) Viewed 399 times
Re: Player Character Sprite not changing
Hi,
As a test, try these settings on the Dialogue Manager:
If that works, then try moving this command to the "Player: start" node's Sequence: SetPortrait(Player, pic=2)
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
If that works, then try moving this command to the "Player: start" node's Sequence: SetPortrait(Player, pic=2)
-
- Posts: 8
- Joined: Tue Dec 14, 2021 12:27 am
Re: Player Character Sprite not changing
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
Hmm, it should update the player the same as the NPC. Is the player the speaker or listener of the current dialogue entry?
-
- Posts: 8
- Joined: Tue Dec 14, 2021 12:27 am
Re: Player Character Sprite not changing
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
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.
-
- Posts: 8
- Joined: Tue Dec 14, 2021 12:27 am
Re: Player Character Sprite not changing
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
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.
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.
-
- Posts: 8
- Joined: Tue Dec 14, 2021 12:27 am
Re: Player Character Sprite not changing
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!