You can't create an object based on UID, I use the nickname plugin/behavior for that. As I said I have already made the game save its objects to an array. And I have managed to get the array loaded into the game. A few minutes ago I managed to load the objects by nickname from the array, but I cant figure out how to set the JSON state to the correct objects through picking etc.
Edit: changed the If to a foreach
so when game starts | foreach {arrayData.at(arrayData.IndexOf(object.UID), 1)} (CreateObject Object, SetPosition.X (arrayData.at(arrayData.IndexOf(object.UID), 2), SetPosition.Y (arrayData.at(arrayData.IndexOf(object.UID), 3), SetLayer (SetPosition.X (arrayData.at(arrayData.IndexOf(object.UID), 4)))
I am already using a for each.
Updated .capx (figured out how to load the objects, not how to set the JSON string from array, picking the correct instances etc.): https://www.dropbox.com/s/77c3rxdyu5ptz ... .capx?dl=0