- Home /
Looking for advice about changing levels.
I am attempting to build a game that will contain an unknown number of puzzles. The puzzles will have a unknown number of levels in them. My question is: what is the best way to transition between puzzles and levels?
How are you organising your puzzles and levels? Is each puzzle and level a different Unity scene?
Answer by Nosrick · Jul 28, 2018 at 06:48 PM
What I'd do is hold the puzzle scene name somewhere before you load the puzzle (like the puzzle before it, or a JSON file, depending on how you deal with your puzzles). Then, you simply fetch the next puzzle file name and load it when you're done with the puzzle at hand.
So each individual test would not be associated with each other? They would all be just sitting there until the scene manager, upon referencing the data file, called the next one?
Pretty much, yes. It all depends on how you want to handle it. You could just load in .JSON files for the puzzles, or you could use full blown .unity files, if you want dramatic scenery changes.
Why would you use .unity files for dramatic scene changes? I thought that the file was only supposed to be used as point of reference.