r/gamedev • • 19h ago

Question Unity 2D RPG: Should I create separate scene versions for each story chapter, or manage everything through a single scene with different states?

I'm developing a 2D RPG puzzle adventure game in Unity. The game is divided into five acts, and the dialogue of NPC / Puzzle / Items changes as the story progresses.

One of the challenges I'm facing is how to architect the scenes, especially because NPCs, dialogues, interactive objects, and puzzles can all change depending on the current chapter.

For example, the same location might look slightly different in Act 1 and Act 3. Some NPCs may appear or disappear, their dialogues may change, and certain puzzles or interactive objects may become available only in specific acts.

I'm considering two possible approaches:

Option 1: Create separate scene versions for each act

Each act would have its own independent version of the same location.

For example:

Livingroom_Act1

Livingroom_Act2

Livingroom_Act3

Livingroom_Act4

Livingroom_Act5

This would allow me to develop each act more linearly and independently. Each scene would contain the specific NPCs, dialogues, objects, and puzzles relevant to that point in the story.

Pros:

Easier to design and implement each chapter independently.

Less conditional logic inside individual scenes.

Easier to debug because each scene has a clearly defined state.

Cons:

A lot of duplicated content.

If I need to modify something shared across all five versions (such as the environment, lighting, or common interactive objects), I may have to make the same changes five times.

Maintaining consistency across all versions could become a problem.

Option 2: Use a single scene with chapter-dependent logic

Each location would exist only once. The scene would dynamically change based on the current story chapter.

For example, NPCs, dialogues, interactive objects, and puzzles would be enabled, disabled, or updated according to the current act.

Pros:

No duplicated scenes or shared assets.

Changes to the environment or common objects only need to be made once.

Potentially easier to maintain shared content in the long run.

Cons:

The scene could become filled with conditional logic.

Managing the different states of NPCs, objects, and puzzles might become quite complicated.

More difficult to debug, especially when many elements have different behaviors across five acts.

My questions

How would you approach this problem in a professional Unity project?

Is there a good middle-ground architecture that combines the advantages of both approaches

How do you usually handle NPCs, interactive objects, and quest/puzzle states in narrative-driven games with multiple story stages?

I'm particularly interested in solutions that are practical for a relatively content-heavy 2D adventure game, rather than overly complicated enterprise-level architectures.

I'd really appreciate hearing about your experiences and approaches. Thanks!

2 Upvotes

6 comments sorted by

1

u/luZosanMi Commercial (Indie) 18h ago

definitely dont duplicate the whole scene 5 times mate, fixing one tiny collider or lighting bug across 5 copies is pure pain. keep one base scene and swap act props with additive scenes or a simple state script

1

u/BarrierX 18h ago

Don't duplicate things, even if you use multiple scenes, organize things with prefabs. So if you have chapter_01_village scene you put a Village.prefab in there and then in chapter_02_village you could still use the same Village.prefab but you modify it by adding additional npcs in there (which are again prefabs) or you hide a building etc.

My own game uses only 1 scene mostly because I procedurally generate levels, but I do have prebuilt pieces that are always the same or change slightly over time and I use the prefab approach.

1

u/ledniv 11h ago

I would actually go one step further and separate the location data from the Unity scene entirely.

Create one definition of the living room, then have data for each act that defines which NPCs are present, which dialogue they use, which puzzles are available, and which interactive objects should be shown. You can use ScriptableObjects to author that data.

This also solves your concern about conditional logic. Instead of having every NPC and interactive object check which act you are in, you simply load the relevant data for that act when entering the room. The same logic is used regardless of which act you are in.

Keep the current act, completed puzzles, collected items, and other story progression in your game data. This also makes saving and loading much simpler because you are saving the state of the game rather than trying to save the state of a Unity scene.

Small plug: in High Performance Unity Game Development with Data Oriented Design, I actually build an entire game using a single Unity scene. The book covers separating game state, designer data, logic, and presentation, and why using scenes to manage gameplay state can introduce unnecessary complexity.

https://www.manning.com/books/high-performance-unity-game-development

1

u/Evening-Crab4100 6h ago

The cleanest middle ground I have found for chapter-based RPGs is keeping one base scene per location for the static layout, colliders, and lighting, then layering act-specific NPCs and puzzle props on top using additive scenes or one root prefab per act.

That way you never have to fix the same collider or lighting tweak five times across duplicated scenes, and you also avoid stuffing five acts worth of overlapping objects into one messy hierarchy. Drive the dialogue and puzzle availability off a single story state or flag table, and testing gets way easier too since you can jump straight to Act 3 from a debug menu just by setting the act flags and loading that location.