I've created a universal event sheet that can interpret the data I put in my json arrays to make a room like so:
My goal is to create an event sheet and a json string for every one of my layouts.
When I go into the event sheet for the first layout and call the json file using this simple function, it works:
However, when I try to go to the 2nd layout, with the exact same code, not only does it not load my array, but when I try to go back to my first room it isn't loaded either.
This is how the first level looks like and how every level should look like: (purpleBlock: Player & green block: teleporter to 2nd layout). Side note: The border of each room is calculated separately, it is not written in the json array.
This is how the 2nd layout looks no matter what I do:
And, as I said above, if I go back to the 1st layout, it is empty.
This is a very complicated issue that has been bugging me the whole day and I can't continue to work on anything before I fix it.
If it's not too much to ask, I'd like to share my code with someone directly because I have a very hard time describing everything going on in my code. I'm sorry in advance if I am hard to work with, I just bought Construct 3 a couple of days ago.