I’m new to using globalDict, and i understand it quite well, but im uncertain of how to save the globalDict, i tried using logic actuator, but im not sure if it is working. Basically what i am trying to do is save data in globalDict and be able to access it all the time, i save the worldPosition of an object, then when i press a key it is meant to set the worldPosition of that object back to what the save is (since it is on another scene and resets itself when the scene is removed and added), but i get an error that says: “RunTime Error: Vector read, user has become invalid”, in the console.
I think you better store a copy of the position (vector):
valueToSave = object.worldPosition.copy()
As worldPosition and Co. return a reference (which gets updated all the time) it makes no sense to store it anyway. On access you would get the value from current frame not from the past.