Hello , I’m making a Puzzle Slider game , where I create (with create primitive c# code) quads , and then I apply a texture and a script called Bloques and the puzzle size is determined by a variable , for example if I use 3 in the variable the puzzle will be 3X3, etc.
My problem is that I want to save the user progress of the game , that means the position of the quads.
So I have a block that the user can’t see because is not active in the scene , but I use that block to move the ones that are active.
Each Quad has a script called Bloques , each Quad has a coordinate , its a public variable called coordinada and its a Vector2Int type.
My problem is that I don’t know how to save the state of the game (I mean it in a file), so if the user make’s progress in the puzzle , close the game , and start that level it will be from scratch what I want to do is save the user progress.
How could I save the “status” of the scene as data?
I’ve tried for a few days and I’m running crazy because I’m close to end the game.
with this method you’re able to load and save complex scripts / manager, so i’d do a save manager class =>
public class SaveManager{
public int currentscene;
public PuzzleManager currenPuzzle;
public PuzzleState //3/100 finished
//can be more just for an idea
}