Page 1 of 1

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

Posted: Sat Jun 30, 2018 5:54 am
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.

Re: Problem with interaction between Player Character and NPC.

Posted: Sat Jun 30, 2018 7:12 am
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.

Re: Problem with interaction between Player Character and NPC.

Posted: Sat Jun 30, 2018 10:07 am
by Japtor
Hi,

Nice! Now everything works fine! :)

Thanks for the tutorial. It helped me a lot!

Regards,
Javier.