I'm wondering some opinions on the best way to do this. Currently, I'm creating a blank sprite on each npcs and pinning it the npc. I then set a "if player < 100 pixels from NPC, on SPACE, do the following lines of dialogue". The only issue I come up with this is if 2 npcs are next to each other, it kind of freaks out.
This is more of a general question; does anyone have any thoughts on the best way to accomplish an rpg style npc dialogue event?