I have a problem accessing array after loading from local storage.
I have an array with (81, 1, 1) size.
I have different events using this array without any problems. Like events in this example. Let’s call it “example_1”.
Then I decided to make save game option. For this I write and read (save and load) this array’s values in local storage.
I’ve checked array after using this save/load functions and it’s filled absolutely correctly.
However after using load function events in “example_1” stopped working.
Looks like this event says array doesn’t contain value. I’ve checked many times, same array with same values – this event (and many similar) works before saving/loading and then doesn’t work after.
I’ve changed this events so they now looks like this:
I think I solved this problem only partly. My project contains lot of code and uses arrays a lot. So I fear somewhere somehow I won't fix this and problems will happen. And this bugs are difficult to find and identify.
I've tried different Construct 2 versions and problem happens in all of them. Did any of you have this bug? Could you explain nature of it so I could fix it? Or maybe you know the way how to deal with it.