G
Guest User 1
Guest
I'm working with isometrics and so am working with a 3D grid of "blocks", all of which need a variety of properties. The ideal way of doing this would just to use an array as such:
But I recently learnt that GMS can only use up to 2D arrays.
How can I get around this problem, maybe using nested arrays of some kind where every single block as its own single number like an ID, that being the first dimension, and then the property being the next? The only problem there is I need a 3D coordinate way of referencing them for ease of programming.
Thanks for any help.
Code:
world[x, y, z, p];
//x is the numbered block along the isometric x axis
//y is the numbered block along the isometric y axis
//z is the numbered block along the isometric z axis
//p is the numbered property of the specified block
How can I get around this problem, maybe using nested arrays of some kind where every single block as its own single number like an ID, that being the first dimension, and then the property being the next? The only problem there is I need a 3D coordinate way of referencing them for ease of programming.
Thanks for any help.