Inspiraton
In the game, the player has the ability to travel back to the start of the game when it dies, while the previous “itself” still remains in the game. When the player dies and restart the level, a tim shadow of the player will be generated. The shadow will move on its own according to the previous movement of the player, the player need to cooperate with “itself” that exist before the world restart to solve puzzles and defeat enemies.
Suggestion of the Professor
Professor recommanded a package to realize the idea, he alsp suggested that instead of let the “time shadow” to behave completely the same to the player’s past (including transform, shooting and other interactions with the environment), we could only save the transform in order to reduce some technology difficulties.
Professor also suggests to make the difficulty a bit easier, and make more levels using this mechanism in the future.
Tech
I use object recorder to record the operation of the user and put it on the time shadow. It causes the main problem now:
as the function is from UnityEditor but now UnityEngine, the game could only be played in unity edity, but not be able to build.
so I attached videos of the game, if you want to play it, you can have the src files from me and run it on unity editor
Link
The first video is too large to be uploaded here
https://drive.google.com/file/d/1nEj7I9eIpqtaY-xFfEbfMsiHwPrESlti/view?usp=sharing
the one below is a complementary video, plz watch the first one before this 🙂