I gave my blacksmith (sprite by Pandamaru, he's hitting the anvil) some clink! sounds, once the player would come closer.
You'd need an event sensor in order to do this.
Generally an event sensor could do some nice stuff, which makes the NPCs more alive.
This can be sounds, animations, or balloons.
Somewhere I've seen a plugin (I think it was Moghunter) which would let you place text above events (NPCs).
I don't like much how ALL the NPCs are stepping in the example you gave. It would fit in a comedy-like game tho, I think.
Visual ideas then:
- Poses. Even simple things like having two people holding hands or someone sitting, nursing a beer can really make your game interesting and it really doesn't take much to edit small sprites into something interesting.
- Having them in certain groups (friends/family groups) or on certain paths of walking. Having some of them run faster/slower. A boy chasing a dog in a circle is obviously playing while a man jumping up and down outside a window where a cute girl might live is very likely a pervert. Simple things to add in but they can add a lot to characterisation.
- Making their living spaces interesting and relevant to their character. For example, if you've got a family of three where father is a guard, mother is a baker and child is a kid, then you could show stuff like the kids room full of toys, mum having baking supplies and actually baking in the house and father having his guard kit in his room. Or a pedantic scholar would have a very clean house but with a lot of books, while a mad scientist might have burn marks around his lab, which might be a mess of experiments.
If you want some tips on Dialogue for NPC.
Follow these Five Things. I used these to determine what a NPC say.
1. Pure Random - Anything Goes. Pretty much having the NPC say anything funny, sad, stupid, etc.
2. Gossiping, Rumor talk or giving hints.
3. Talk about Lore or the World or what going on in the world.
4. Talk about their life or recent encounters or experiences.
5. Dialogue is related to a certain part of a story.
Like if the town was attacked then this will be activated.
Each town need all of these. There need to be that wise old man or woman who knows a lot.
There need to be those kids who say random stuff.
There need to be that on NPC who tells you about a hidden place but doesn't tell you how to find it or get there.
There's a script that makes non-invasive dialog speech bubbles a thing. So you could have an event that triggers when you walk near the NPC and says something in a bubble, like "Watch your bag, there are thieves everywhere!"... meanwhile you're still moving around exploring.
As has been stated to death, dialogue is key. Also, it's interesting to run across the same NPCs as you go along their journey and have them have new dialogue to fit the time and place. The Trails series excels at this in particular. As for visual bits, I like having NPCs visibly talking to each other. I use Yanfly's move route core to balloons pop up above them to make them seem like they're having an ongoing conversation. Also, I like to have them doing things during cut-scenes, or have a cameo of a future relevant character as a background NPC just passing by during a cutscene or on a subway car.
Like others have suggested, I would either give them various batches of dialogue, usually either something different each time you talk to them, or reacting to different events and scenarios. Even if it's something small, like them saying "I hate onions!", and should you have a certain item or whathaveyou, it'll change to "Ewww! you smell like onions!". Also, I like to give my NPCs names, it makes them feel more than part of the background, it gives them an identity.
Not a lot of thoughts about pre-interaction - I agree that dialogue and events with NPCs are really the best way to make them interesting - but one idea I do have is to have all of the important storyline characters in your game also act as NPCs around town instead of staying holed up in one location and then never getting any new dialogue as things progress. Have them hang out around town - even in multiple places - and update their dialogue frequently.
From my point of view, npcs are used to develop the universe where the scenario would not succeed. For example, some of ff6's npc tell us the story of Kefka, you don't need it for him to have a good antagonist role but it enriches the character, it makes it more palpable, more real.
It's better than just a cool dialog box. The npcs have to do what the rest of the game can't do. imo.
Some games, can't think of much off the top of my head, updated NPC dialogue as the game went on to reflect current events. I think Dragon Quest XI did it where the NPCs of a town's dialogue constantly updated depending on what happened in the towns storyline and some NPCs even had mini-character arcs and stuff. It was pretty cool, and made the world feel very much alive and thriving.
Personally, as a fan of mundane world-building and slice-of-life storytelling, I try to build the background as much as I build the main story (if not moreso), so I try to give every NPC a name, some sort of relationship with other NPCs and possibly a set of interests or hobbies. For example, if there's a scene that takes place during a theater, I try to pick who appears in said theater based off their interests. I love when shows or stories are able to give you a feeling of a characters personality, even if they never really talk.
As others have said, giving dialogue that gives history to the world and characters also works. For example, if you have an older NPC, you could have them tell you about their childhood, or tell you about a notable figure or event in their town. The Kefka example is great, but maybe they can also tell you about some bizarre event that befell the town, or some local legend or myth. There's a ton of possibilities.
You can use the "stepping" action or something like it to make them a little less static but that only works if they are being used from a full character sprite instead of just one graphic. Otherwise, make their design eye-catching and give them character with their dialogue.
Placing them in an interesting setting and using color theory to make them stand out would also be useful.