2d array in ArraySchema.
KiloGram last edited by
I created an ArraySchema and filled it with arrays to simulate a tiled map. I would like to listen for changes in the 2d array and also I don't know how to do the
type()thing on it so that it syncs the elements in it properly. Any help with this would be great. Thanks in advance.
ArraySchemadoes not support multi-dimensional arrays. The general suggestion is to use a 1D array and treat is as 2D when iterating on it. Please check this reference: https://softwareengineering.stackexchange.com/questions/212808/treating-a-1d-data-structure-as-2d-grid