Hello,
I use the Marching squares extension to draw by applying noise to create a map.
My problem:
I want to save and load the drawing.
Saving:
I don’t know if I’m saving correctly, at the moment it saves the value of the field at a position in an array variable then it shifts to another position according to the width and height of the cell until it does the whole field. Then it saves it in a JSON file.
Loading:
Loads the JSON file into the array variable and uses the same method but modifies the field at one position. This is where I have my problem, it doesn’t want to apply the position because it’s not the position of a grid point. I don’t know what this grid is or where these points are and I don’t know how to retrieve the position of these points.
Thank you !