Hello Codeproject,
I am trying to paste nine multi-dimensional arrays to one big multi-dimensional array.
Basically the smaller ones are 20 by 20, and the bigger one is 60 by 60. So there should fit nine smaller ones in right ? Well apparently I am making it go out of bounds.
Here is the code;
for (int i = 1; i <= 3; i++)
{
for (int j = 1; j <= 3; j++)
{
int RightChunk = i * j;
int WritingX = (i * World.ChunkSize);
int WritingY = (j * World.ChunkSize);
for (int x = 0; x < World.ChunkSize; x++)
{
for (int y = 0; y < World.ChunkSize; y++)
{
Block _Block = new Block();
_Block.BlockID = LoadedChunks[RightChunk].GetBlockID(x, y);
StickedChunk._Blocks[WritingX + x, WritingY + y] = _Block;
}
}
}
}
The 'Sticked Chunk' is the bigger one.
Edit: Anyone ?