I want to know how I can make the player able to interact with NPCs, similar to top down RPGs, but, I don't know how to make it that the player can talk to the NPC by just standing in front of them and facing them, and clicking a specific button.
You'll need a few conditions. Try is overlapping at offset for location, and within angle for facing the npc. Then the button trigger to run your action - display text.
Develop games in your browser. Powerful, performant & highly capable.
Ive always use another invisible sprite and just made what ever size so that I could do something like If overlapping this sprite start diagloque and usually i had it set up where it would use instance variable to activate the require dialogue.
but that just the quick n dirty not really a good way to do it.