So, some months ago I asked the same question:
http://hutonggames.com/playmakerforum/index.php?topic=3677.msg17033#msg17033We're working on a mobile game.
That time I found another "solution" at Unity Answers which doesn't have to do anything with PlayMaker. I was suggested to have a scene like the Scene before the Start-Scene which loads once and there I create the objects with "Dont Destroy On Load" and can use them as I like in the following scenes. The only problem is: This scene has to exist and won't be loaded only once. For example, when the Application is quit and complete closed by the user that specific scene will load again and duplicate objects. That is a no go for the game.
I searched here in the forums how to tackle this with PM and found different topics like:
http://hutonggames.com/playmakerforum/index.php?topic=4053.msg18891#msg18891or
http://hutonggames.com/playmakerforum/index.php?topic=1653.msg7288#msg7288But I can't figure out how exactly I should use these global variables.
Let's say:
- Scene 1 has the Player and a MANAGER-Object
-> The Manager from Scene1 must check if the Player exists, when the level is loaded again from Scene 2 for example -> if the Player exists, I have to destroy the duplicate (or scene-instance or whatever it is called)
- since the Manager checks also for the Player on START when I start the game in Scene1 he destroys my first player and the scene has no player at all.
How to deal with it exactly?
I need some help on this since the "life" of some certain objects have paramount importance, like the UI. We have a Booksystem Quests and Items, and these Elements should be carried over from level to level. So after revisiting older levels there can't be two/three/or more UIs.
And another thing:As mentioned above we have these Quests and Items which are Labels and Sprites (nGUI/2DTK)
Now I don't know how to save/load these things.
For example: When the Player ends a certain Quest and gets an Item, the Questpage in the book and the Text (NGUI-Label) is marked as "Accomplished" and the Item-Sprite is shown in the Inventory.
When the Player ends the level the game should be autosaved. When the Player quits and closes the game he can load it in the Loadmenu and all the progress incl. the accomplished quests and the collected items should be "there" like he left the game.
What would be the best way to save/load these things?