[Solved] Problem with interaction between Player Character and NPC.

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Japtor
Posts: 120
Joined: Thu Jun 28, 2018 1:41 pm

[Solved] Problem with interaction between Player Character and NPC.

Post by Japtor »

Hi all,

I am creating a top-down 2d game style. I am trying to implement a player character to start a dialogue with the NPC when he is really near to him and it presses an action key.

I have tried with the selector and the usable component. But it seems to don't work when the NPC is in another place.

Is there a way to implement a player/NPC interaction with the selector and usable components, but like in a trigger/collision form?

Thanks,
Javier.
Last edited by Japtor on Sat Jun 30, 2018 10:07 am, edited 1 time in total.
User avatar
Tony Li
Posts: 22059
Joined: Thu Jul 18, 2013 1:27 pm

Re: Problem with interaction between Player Character and NPC.

Post by Tony Li »

Hi Javier,

Yes, use a Proximity Selector instead. The Interaction Tutorial shows how set up a Proximity Selector in a 2D platformer scene. The process is similar for 2D top-down and 3D scenes, too.
Japtor
Posts: 120
Joined: Thu Jun 28, 2018 1:41 pm

Re: Problem with interaction between Player Character and NPC.

Post by Japtor »

Hi,

Nice! Now everything works fine! :)

Thanks for the tutorial. It helped me a lot!

Regards,
Javier.
Post Reply