Hello all!
Once in a while we get questions like: How can I access the players health from another scene? How can I keep the number of wins/loss? etc.
Rather than explaining it again and again I want to present you some solutions.
What is the problem?
Imagine your scene is a ship. The ship has cargo holds (= game object properties). Each cargo hold has crates with data (= property values).
Now you want to change the ship (set scene). What happens?
The captain, sets the ship on fire and let it sink. You the only passenger you are transferred to a new ship that was build while the old one is sinking.
Unfortunately all the cargo holds and all the crates are lost with the old ship :(.
How to rescue the cargo holds?
You canât! The cargo holds are mounted to the ship and will sink with it.
How to rescue the crates?
You need to tell someone to do that. What options you have is explained at the next posts.