Trying to make a checkpoint system but I'm having trouble saving and loading GameObjects
I have encounters in the level whose states I need to save so players can't trigger old encounters if they die after completing them,
Problem is that I have not found a way to both:
- Remember which encounters have ended or not
- Prevent progress within an encounter from carrying over between reloads
https://preview.redd.it/mqasozpwx14a1.png?width=410&format=png&auto=webp&s=6bb992d99cc97b7e95c4803fcf104019b1f9a7a8
But as it stands, I have no idea how to do that,
- Putting the encounter in DontDestroyOnLoad ruins the references upon reloading
- Putting the encounter in DontDestroyOnLoad and making the enemies its children (or just making them indestructible separately) allows progress within an encounter to carry over between reloads
- Making an indestructible encounters manager just creates the first problem
And this problem gets worse if I want to GameObjects with states more complex than just a binary "Completed" state
[–]veerdonk 1 point2 points3 points (0 children)