TechBuzzPro

Time Loop RPGs: Tracking Choices, Saves & Timelines

· 6 min read · Apps & Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Time loop RPGs like The Outer Wilds, Deathloop, or 12 Minutes present a unique design challenge: how do you let players redo the same period of time while still making their choices feel permanent? This guide covers the practical systems you need to track choices, manage saves, and keep multiple timelines coherent. You'll learn how to structure your save data, handle branching narratives, and avoid the classic pitfalls that break immersion. No prior coding knowledge is required, but familiarity with basic spreadsheet logic or simple scripting helps.

What You'll Need

  • A game engine or framework that supports custom save systems (Unity, Unreal, Godot, or even a text-based engine like Twine).
  • A way to store data persistently (JSON files, SQLite, or engine-specific save slots).
  • A clear design document of your loop structure: what resets, what persists, and what branches.
  • Version control (like Git) to keep track of your own code changes.

Step-by-Step

  1. Define what resets and what persists.
    Write down every variable in your game. Categorize each as loop-reset (e.g., player position, enemy states, time of day) or loop-persistent (e.g., knowledge, key items, unlocked shortcuts). This is the foundation of your entire system. Be explicit: if a door stays open after you unlock it, that's persistent. If a guard's patrol route changes because you talked to them, that's persistent too.
  2. Create a single source of truth for the loop state.
    Build a data structure (like a dictionary or JSON object) that holds all persistent variables. This is your "world state." It should be separate from the transient state that resets each loop. For example, in Unity you might have a GameState singleton that survives scene reloads.
  3. Design your save system around checkpoints, not just one save.
    Players need to save at meaningful moments. Instead of a single auto-save, offer multiple slots or a "timeline save" system. Each save should capture: the current loop number, the persistent world state, and the player's immediate progress within the current loop (position, health, inventory). This allows players to jump back to a specific decision point.
  4. Track choices with flags, not just booleans.
    Use a combination of booleans (e.g., met_blacksmith) and integers (e.g., blacksmith_trust_level) to capture nuance. For branching timelines, use a string or enum that records the path taken (e.g., timeline: "betrayed_ally"). This makes it easier to debug and to write conditional dialogue.
  5. Implement a "loop reset" function.
    Write a function that restores all loop-reset variables to their initial values, but leaves the persistent world state intact. This function should be called when the loop restarts. It should also handle re-initializing NPCs, items, and world objects based on the persistent state. For example, if you gave a key to a character, that character now has the key in their inventory.
  6. Handle multiple timelines explicitly.
    If your game has parallel timelines (like Braid or Chrono Cross), you need a timeline ID. Store the current timeline in the save data. When the player switches timelines, load the appropriate world state. Consider using a stack or tree structure if timelines can branch and merge.
  7. Test edge cases early.
    Create a test checklist: What happens if the player dies at the exact moment they pick up an item? What if they complete a quest and then the loop resets? What if they save during a cutscene? Run through these scenarios and ensure your state transitions are clean.
  8. Provide player feedback.
    Players need to know what persisted. Use visual cues: a new dialogue option, a changed environment, or a "knowledge log" that fills in. This makes the system feel rewarding and prevents confusion.

Common Mistakes

  • Overwriting persistent state with loop-reset defaults. This happens when you load a fresh scene and it resets everything, including flags that should persist. Always apply the persistent state after the scene loads.
  • Storing too much in the save file. Don't save the entire game world. Save only the deltas (changes) from the initial state. This keeps saves small and reduces bugs.
  • Ignoring the player's knowledge. If the player learns a code, that's persistent. But if you also keep the code in the world, it's redundant. Remove the physical note after the player reads it, or mark it as "already read."
  • Making all choices permanent. Not everything needs to carry over. If a character's mood resets each loop, that's fine. Over-persisting can create unintended consequences that are hard to debug.
  • Forgetting to save the loop number. This is critical for any time-based mechanics (like time limits) and for narrative progression. Always store it.

Tips

  • Use a debug menu. Create a simple in-game overlay that shows all persistent flags and their values. This is invaluable for testing.
  • Design your narrative around the loop. The most satisfying loops reveal new information each cycle. Make sure your persistent state is what drives that reveal.
  • Consider a "timeline map" for the player. Some games show a branching diagram of choices. This is a great way to help players understand the structure.
  • Write automated tests. If you're using code, write unit tests that simulate a loop: change a flag, reset, and verify the flag persists.
  • Keep your save format versioned. When you update your game, you'll need to migrate old saves. Store a version number in the save file.

Troubleshooting

  • "My persistent flag doesn't survive a loop reset." Check that you're not reinitializing the variable in the reset function. Also check the order of operations: reset should happen after you save the persistent state, not before.
  • "The player can save in a state that breaks the game." This usually happens when the player saves during a scripted event. Disable saving during cutscenes or critical moments, or make the save point restore the player to a safe state.
  • "Multiple timelines conflict with each other." Ensure that each timeline has its own save file or its own section within the save file. When switching, load the correct timeline's data and unload the old one.
  • "The loop reset feels cheap." If the player loses too much progress, they'll be frustrated. Make sure that knowledge and key items persist, and consider giving a small bonus (like a new ability or hint) each loop.
  • "My save files are huge and slow." Compress your data or save only changed objects. Use a database if the state is complex.

Frequently Asked Questions

  1. Should I use a single save file or multiple slots?
    Multiple slots are better for time loop games because they let players branch out and explore "what if" scenarios without losing their main progress. At minimum, offer one auto-save and one manual slot.
  2. How do I handle achievements or meta-progression?
    Keep achievements outside the loop state entirely—they should be tied to the player's account, not the game world. Meta-progression (like permanent upgrades) can be stored in a separate persistent file that is never reset.
  3. Can I use a visual scripting tool like Blueprints?
    Yes, but you'll still need to design the data structure. Use variables and structs to hold persistent state, and be careful about when you read/write them.
  4. What if the player saves in the middle of a loop and then loads after the loop ends?
    This is a common edge case. You should either prevent loading saves from a previous loop (by invalidating them) or allow it but clearly label the save with the loop number. The latter is usually more player-friendly.
  5. How do I keep track of dialogue choices across loops?
    Store a dictionary of dialogue IDs and the option chosen. When the same dialogue plays again, you can reference that choice to change the conversation.
  6. Is it okay to let the player skip the loop reset?
    Yes, if your game has a "continue" option that skips the intro and goes straight to gameplay. Just make sure the reset function still runs in the background.