|
Hey guys, need a second opinion. i have a 2d level based physics game where the player can move round certain objects, now if the player wins, they proceed to the next level, but if they lose, the game reloads, but i want the dragged objects to remain in their positions after the reload of the current level. I can't really use dontdestroyonload, i don't think anyway, because i have so many static variables in the inspector that would need reassigning if i preloaded the objects in an empty scene beforehand, but if i load them in the game scene obviously on reload duplicates are formed. any ideas? Edit: sort of like carrying over the specified objects into the next scene, and replacing the originals from the reload with them..
(comments are locked)
|
|
i ended up putting the objects i needed to keep and not destroy in a preload screen, and covering that with a load texture, then with don't destroy on load the reset doesn't create duplicates, as i destroy the objects and reset them.
(comments are locked)
|
|
I don't see a way around it, but it's hard to suggest things without knowing more detail. But, one method I can suggest that might have minimal impact:
thanks for your response, i ended up putting the objects i needed to keep and not destroy in a preload screen, and covering that with a load texture, then with don't destroy on load the reset doesn't create duplicates, as i destroy the objects and reset them - sorted :) thanks anyway David!
May 07 '12 at 11:54 PM
ratboy
(comments are locked)
|
