HI !

I'd like to use an array to get multiple values on a 2 dimensional map.

I know I can set a single X,Y value : Set value at(X,Y) to (value)

or eventually several values on X,Y if I already have a Z value, like : Set value at (X,Y,Z)

But I'd like the Z value to be auto-incremental

as we should do in PHP

array[x][y][] = value 1

array[x][y][] = value 2

etc...

resulting in values at

[x][y][0] = first value on X,Y

[x][y][1] = second value on X,Y

So you can stack as many values as you want.

But the push and insert functions of Construct 2 just allows to "inserts a new 2D plane of elements", resulting in multiple insertions, and I just want to add one by one.

Is the only way is to count all the X,Y values so far then guess what my next Z value will be ?

Or eventually generate a random Z value big enough so matching will be (almost) impossible ? (wrong idea)

I hope I explained my problem clearly enough and that someone can help me with this !

Best