Wen you leave a layout, everything is destroyed unless it is given the Global property.
The character is persistent and stays on the layer you drag him out / away from the 'bottom bar' a variable says he's out and lets him stay in that layout when leaving and returning
I don't think you can.
Maybe destroy the object on exiting laytout 1 and recreate it later as needed?
Would these need code for every layout to save a position of a character if the variable for it says it's out (up from the menu bar)
I'll share this link so you can see what's going on so far:
http://www.jmkit.com/html5/testproject/index.html
Things to bare in mind:
- You can click and drag the character out to one place (say blue) - leave and he's still out, go back to blue and is in the position you put him...
you can then drag him back to the bottom where he'll pop down and stay there through all the layouts.
every button goes to a new layout
However, the problem comes when say you drag him out in the blue place - then go to the green place and click the outline to bring him back down, then immediately drag him out to the green place he'll be in both the green and blue place <img src="{SMILIES_PATH}/icon_e_surprised.gif" alt=":o" title="Surprised"> (that goes for any variation on place to place, you can get him out in all 3 layouts with that method)
The resetting him from a layout he's not on seems like the only issue i'm having.
Thanks for your replies so far!
check out how i'm doing it code wise here: https://www.dropbox.com/s/6w3hkgdfmlf7e ... .capx?dl=0