BQubed
Member
I've been told, by quite literally everyone I asked, not to use the 'persistent room' checkbox. So I've started trying to code some persistence into the room. Here's what I've started with:
This successfully takes all the IDs of the instances and stores them in
GML:
for (var i = 0; i < instance_number(InteractableParent); ++i;)
{
instances[i] = instance_find(InteractableParent,i);
}
instances[i]
. I'm looking three main variables from each instance: x, y, and dialogue_state. Problem is I'm not entirely sure where to go from here and I've found precious little in terms of videos or documentation regarding coding persistence. I was thinking that every time I transit to another room, the variables are saved into a ds_map, or with GMS 2.3, should I use a struct? If someone could point me in the right direction or even show me some helpful video/documentation, that'd be great.