Branch the story
Build a branching interactive graphic novel on PanelWave — the choice pattern step by step with variables, hotspots, graph edges and variants, what readers see in page view, the three mistakes that make branching stories unreadable, and how to test every path.
Every PanelWave chapter is a graph: panels are the stations, edges are the arrows between them. A chapter with one straight line of edges reads like any comic. The moment a panel has two ways forward, your story branches — and the reader gets a say. This guide builds one choice the right way, shows what the reader experiences, and names the mistakes that turn a branching story into spaghetti. As of November 2026.
Read Graph Navigation first if the words edge, condition and variable are new; the blog's Why graph-based navigation? explains the design choice.
Start linear
A chapter without any edges is read in its reading order, and panels in a chapter you connect 1 → 2 → 3 read the same. Write and letter the story linearly first. Branch only where the choice changes something the reader will notice — a scene they would not otherwise see, a line a character would not otherwise say, an ending. Most good interactive comics have a handful of real choices and a few quiet consequences, not a choice per page.
The four pieces
| Piece | What it does | Where |
|---|---|---|
| Variable | The story's memory: choice1, trust, hasKey | Variables designer |
| Hotspot | The clickable option on the panel; it sets the variable and navigates | Hotspots |
| Edge | The arrow to the next panel, with a condition that reads the variable and a choice text | Graph Editor |
| Variant | A different version of a later panel when a condition is true — the consequence without a new path | Variants |
The choice pattern combines them: declare, set from hotspots, test on edges or in variants.
Build a two-way choice
Lay out the panels of both paths first
Write and letter the panels of path A and path B, and the panel where the paths meet again, on every page format you support (Lay out and letter your pages). A branch added after the pages are laid out has no place on the page.
Declare the variable
On the Variables page, add choice1 as an enum with the values A and B (or a string), scope global so the whole work remembers it, and a default. Decisions the work should remember across sessions use persistent; puzzle state inside one chapter uses chapter.
Letter the options as captions
On the choice panel, right-click → Add Speech Bubble → Narrator for each option and type its text. Give all of them a choice balloon preset so they look alike, and Fit height to text so each box fits its longest translation.
Draw a hotspot per option
Draw a Rectangle hotspot (R) over each caption. Set its Label to the option's text — screen readers announce it and the translation grid lists it — and Shown as to Invisible area, since the caption already shows the text. Give it two actions: Navigate to the first panel of that path, and Set Variables choice1 → A (and, if the option has a cost or a reward, trust → increment 1). Both run on the click. Building a choice has the details.
Wire the edges
In the Graph Editor, connect the choice panel to the first panel of each path and give every edge a choice text — the label of the reader's branch chooser — and a condition that matches the hotspot: {"==": [{"var": "choice1"}, "A"]} on the edge to path A. Leave one edge unconditional as the fallback, so a reader who arrives with no value is never stuck. Connect the last panel of each path to the shared panel.
Show the consequence without a new path
On the shared panel, add a variant with the condition choice1 = A: a different line, a different expression, a prop that is now missing. Variants are checked in order; the first match wins. Open the variant with the eye button to arrange its balloons on its artwork.
Test both sides
Open Preview, set choice1 under Start values to A, read through; set it to B, read again. Save both as scenarios. In the Graph Editor press Simulate and walk the flow; run Validation for dead ends and unreachable panels.
What the reader sees
- Hotspots are clickable regions with a gentle pulsing outline (off for readers who prefer reduced motion), a hover highlight and full keyboard access. When a reader comes back to a choice, the option they picked is marked with a check mark as long as the value it wrote still holds (interactive hotspots).
- The Choices button appears in the toolbar whenever two or more paths are open from the current panel; it lists the open paths by their choice text. When at least two open paths carry an authored choice text — a decision you want the reader to make — Next opens the chooser instead of picking a path on its own (branch choices).
- Page view shows only the reader's path. Before a choice, the panels that only some options lead to are grey placeholders on the page; picking an option reveals its path, and pages made only of panels off the path are skipped (choices in page view). The layout keeps its shape, so a two-path page does not look like a puzzle with missing pieces.
- Autoplay stops at a decision until the reader chooses; placeholders take no time.
- Choice texts are translated with the balloons, so a German reader gets German options.
Three mistakes that make branching stories unreadable
- A branch with no way back. A panel whose outgoing edges all have conditions, and none of them is true for this reader, is a dead end. Keep one unconditional edge per branch; Validation reports
DEAD_END_PANEL. - A condition that can never be true. The edge tests
hasKey, but no hotspot ever sets it — or setshas_key. Search the hotspots for the matching Set Variables action; Preflight flags conditions that read unknown variables and variables nothing uses. - Too many open threads. Five choices that each spawn their own chapter are forty pages for one reader's twenty. Let branches rejoin after a scene and carry the difference as a variant or a variable the ending reads. A choice whose consequence the reader never sees was not a choice. The blog's Branching narratives without the spaghetti works through this with an example.
Beyond choices
A hotspot does one thing when clicked — and it need not be a branch:
- Open Extras shows a bonus item from the extras shelf; Open Modal pops up a text over the story. Good for a clue the reader can inspect, a glossary entry, a map.
- Mutations change the hotspot or the artwork on hover, on click or when a variable changes — a door that swings open, a lamp that lights — without changing panels (the Mutations section of Hotspots).
- Drag reveal on a layer lets readers wipe a layer into view.
- Conditional balloons and hotspots with a Visible If rule appear only for readers whose story got there (conditional bubbles).
- Camera moves between panels on the infinite canvas make the space itself part of the telling.
- Jumps across chapters — a hotspot or an edge may lead to a panel in another chapter, an endings chapter, say; the player continues there.
Choices are a PanelWave specialty no static format carries over: the EPUB, KDP and webtoon exports print one path and point readers back to the interactive edition for the rest. The feature page Story graph shows the reader's side.
Measure what readers do
Once a published version is read, the Analytics board shows reading paths — where readers branch and which path they take — and the click heatmap per panel: hotspot hits, and dead clicks where readers tapped nothing. A cluster of dead clicks is a reader asking for a hotspot; a cold option is one they cannot find or do not want. Filter by device to see whether phone readers find the options at all.
Related pages
Graph Editor
Edges, conditions, choice text, simulate.
Hotspots
Shapes, actions, mutations, conditions.
Variables & Conditions
Types, scopes, the condition builder, testing.
Variables concepts
The choice pattern in the format.
State & conditions in the player
How the player evaluates JSON Logic and resolves edges.
Work from your assistant
Let an assistant wire the choices from your outline.