Back to all writing

My First NPC Finally Talked Back.

Game Dev Series•Part 14•5 min read•By Mikhil

For a long time, the most reliable way to interact with somebody in Block by Block was to imagine the conversation yourself.

The city could contain a person-shaped model. I could inspect it, walk near it, and think about the kind of character it might become.

But there is a big difference between putting someone in a scene and actually meeting them.

Eventually I reached the point where I could approach an early contact, press a key, and get a response.

It was a very small interaction compared with the game I want to build.

It also felt like a much bigger moment than a lot of the visually impressive work that came before it.

Someone finally noticed the player

The first interaction was intentionally modest.

One character had a physical place in the world. The player could get close enough to speak. There was a short dialogue interface and a basic choice between responses.

It wasn't a fully simulated personality. It wasn't an NPC independently pursuing complicated goals. The conversation wasn't evidence that the game's entire social system existed.

It was the first attempt to connect presence, attention, and response.

I liked how basic that was. After designing huge fictional worlds in documents, there was something grounding about asking whether I could make one person face the player and listen long enough for a conversation to happen.

The answer required more work than I expected.

The same key wanted to do everything

By the time I introduced the conversation, the environment already had doors and garage interactions.

Naturally, the player wanted to use the same straightforward interaction key to talk to people.

Which introduced a ridiculous question: what happens when you're standing near a door and an NPC at the same time?

If both systems listen independently, one button press can try to do two things. A conversation might begin while a nearby shutter opens. The player could trigger a door because the game didn't correctly understand which object was being aimed at.

This isn't the kind of complication that makes a game sound impressive in a feature list. It's the kind that makes a game feel cheap when you get it wrong.

So the interaction needed a clearer idea of what the player actually intended: what was visible, what was nearby, and which available action should take priority.

It was a surprisingly important shift. I wasn't simply giving the NPC dialogue. I was beginning to build a consistent language between the player and the world.

Talking changes how the rest of the game behaves

Once a conversation opens, the interface starts borrowing parts of the player's normal controls.

The mouse cursor may need to become available. Movement might need to pause. Number keys may select a response instead of controlling another system. Closing the dialogue must return everything to its ordinary state.

That sounds simple until you remember the world is still running around the interface.

If the game keeps accepting movement, the character may walk away while the conversation remains on screen. If every keyboard shortcut stays active, a reply can accidentally trigger some unrelated action. If input isn't restored cleanly at the end, the player can be left staring at a perfectly nice street without being able to move.

I began to understand why even very small game interactions need boundaries.

A conversation is not just text appearing in a box. It is a temporary change to the rules of control.

The character couldn't be a ghost

There was also the physical side.

An NPC should occupy space. If I walk toward someone, I shouldn't pass directly through their body as though they are a decorative projection.

Earlier character previews had needed their own collision checks. The dialogue prototype carried that concern into a more ordinary game situation: somebody stands on a street, turns toward the player, and can be approached without the world becoming physically nonsensical.

That matters more in first-person than I realized. You get close enough to notice whether someone's feet touch the pavement and whether their face is positioned at a believable height. Any problem with scale immediately becomes part of the conversation.

The player isn't reading a text-only dialogue scene. They're standing in front of a person.

Or at least the earliest workable approximation of one.

What the conversation didn't do

It's tempting to describe a speaking NPC as the beginning of a living world and let the reader imagine the rest.

I don't want to do that.

The contact could support a controlled conversation with simple responses. That didn't mean the character had independent memory, an elaborate daily routine, relationships with dozens of residents, or the ability to react intelligently to every crime committed in the city.

Those ideas belong to the wider ambition of Block by Block. The working interaction was much narrower.

But narrower doesn't mean unimportant.

For the first time, the city contained something I could approach that wasn't simply architecture.

One conversation changed the feel of the street

What surprised me was how much a small bit of interactivity altered the scene.

The surrounding world hadn't suddenly become more detailed. The buildings were the same. The pavement was the same. The coastline wasn't any more convincing.

But now there was a reason to stop walking.

A person could occupy a place, acknowledge me, and respond.

I still needed better characters, more natural movement, and a world that didn't look deserted between those encounters.

The next step wasn't to pretend I'd already built a city full of thinking people.

It was to give the player somewhere to begin—and put a few more people outside.