Need help with NPCs on RPG

Hey,

I’m developing an RPG using the tile-based code found on TONYPA’s website and need a bit of help with positioning NPCs, as well as giving the player the ability to speak with them (by hitting space when facing them).

I did some searching and it was mentioned here but I’m still not sure exactly how to do it.

Some help would be greatly appreciated!