- Home /
How reset the Position of all puzzle pieces?
I want to reset all pieces of my jigsaw puzzle game. Please check the screenshot of my script. I assigned the "LevelComplete" script to all my puzzle pieces. When I complete the level then I want to play that level again which needs reset script.
Answer by SlowCircuit · Sep 21, 2020 at 11:54 PM
There are a few ways to do it.
You can reload the scene if each puzzle is it's own scene.
If each puzzle is just settings and loaded into one scene that houses all puzzles, then you could just redo the loading process for that puzzle just how you would when first starting the puzzle.
If neither of those work, then you in Awake() or Start() for each puzzle piece you can save it's starting position. When you want it to reset, just tell each puzzle piece to return to the starting position that you saved initially.
Thank you for your answer. I am new in Unity that's why it is very difficult for me. I completed 100 levels with the help of youtube and google etc. I will appreciate it if you write a script here for me otherwise it's ok I am trying on it.
Your answer
Follow this Question
Related Questions
3drd person camera reset 0 Answers
Can't reset speed 1 Answer
Restarting The Game error 0 Answers
Creating a Restart Button 3 Answers
Simple way to reset GameObjects? 0 Answers