2D NPC faces player when conversing

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
byronsaniry
Posts: 5
Joined: Thu May 11, 2023 9:44 am

2D NPC faces player when conversing

Post by byronsaniry »

Can you help me let my NPCs face the player when conversing? Only for 2D Unity. Thank you
User avatar
Tony Li
Posts: 22131
Joined: Thu Jul 18, 2013 1:27 pm

Re: 2D NPC faces player when conversing

Post by Tony Li »

Hi,

Please see here for an explanation of why there's not a single answer for this question: How To: Make NPC Face Player in 2D

If you describe how your NPC character faces different directions, I can provide a suggestion on how to make the NPC face the player.
byronsaniry
Posts: 5
Joined: Thu May 11, 2023 9:44 am

Re: 2D NPC faces player when conversing

Post by byronsaniry »

Just a left and right facing for this one
User avatar
Tony Li
Posts: 22131
Joined: Thu Jul 18, 2013 1:27 pm

Re: 2D NPC faces player when conversing

Post by Tony Li »

Please read the link in my previous reply. It'll help us determine what you need to do. Based on that article, let me know whether the character faces left/right using Scale > X, or using SpriteRenderer > Flip X, or something else.
Post Reply