Load Scene and keep Enemy and Puzzles dead/done
Hi everyone.
I'm developing a game 2D, and I use many scenes to do 1 level. In each scene, there are puzzles and enemys. If I die, I just reload this scene, and move my character to the begin of the scene. But if I pass by a scene, and I go back there, when I load it, it must be like when I left. In other words, the puzzle must be done, and the enemys that I killed, must be dead.
So my question is... How can I do it?
Studying and searching for exemples like this, I think the only why to do it, is saving all the objects informations on a script, and using it when loading again this level. So it will see if there are some enemy alive, the position of each object from puzzle, and this stuffs, but I don't know if it's the best way to follow...
If someone understand what I'm trying to say, and could help me, I'd be very grateful!! Thank you
Sorry my bad english
Answer by pqueno2 · Jun 25, 2016 at 08:32 PM
I'm with the same doubt, but I don't see it like the best way... Let's see
Your answer
Follow this Question
Related Questions
Boss ai help EoW 0 Answers
Vector 2 only using x (Enemy AI) 1 Answer
Audio and Scene Load Troubles 0 Answers
After reloading the scene twice one script doesn't work. 0 Answers