Sorry, took forever to get this up.
As you see, the top of the tree is separated from the bottom when the screen scrolls. The top of the tree is on a separate layer from the bottom. My rendering code looks like this..
for (int i = 0; i < HMD.layerCount; i++)
{
for (int j = 0; j < 2500; j++)
{
//draw the tiles skipping -1s
if (HMD.layers[i].getTileNum(j) != -1)
{
HVSTGFX::createTilePNG(HMD.layers[i].getTileNum(j), tileCoordX[j], tileCoordY[j], HMD.tileSet);
}
}
}