I am building a 2D maze game, with a mechanic of “Time Travel.” When the player presses a button on the screen, they will be placed in a new scene. The two scenes are very similar, but one scene is during present day and the other is in the past. What I want is for the Player character to maintain their position when they change levels, so that when they move from the past to the present, or vice vera, they will be where they left off. The only way the player can complete the maze is by moving back and forth in time. Thank you!
make the player a singleton and use dontdestroyonload. Theres a tutorial on Data Persistence that covers this. the tutorial goes over a bunch of other things as well but what you’re interested in is making your player’s data (their transform) persist across levels.