   Image Layers
  Hello there. Im kinda new to allegro, and im planning on making an Isometric Game. For now im worryed bout the map tools, ive already made the map base, but im having a problem making the land 'blend', like grass coming into dirt and stuff. An attached pic shows what ive done. Ive created a tile 30x16 for grass and dirt, then 4 tiles of grass coming into dirt for each corner of the dirt tile. Then, i saved em separadely as a 30x16 tiles in the exact position of the corners, so my idea was just to make these images to come on top of the other tile so users would see the terrain blend. This is not working.http://img697.imageshack.us/img697/7134/tilekg.jpgIve tryed this 2 ways. The first was everytime the program is drawing tiles, he checks if any adjacent tile is a grass, then draw on the same spot of the tile another tile at the mapaM bitmap (witch goes onto buffer later) witch is the 'quarter' tile with the desired blend on one or more corners. Then it wasnt working, ive added another BITMAP for a layer, and saved those quarter tiles for this bitmap. Then i draw it on buffer after i draw the mapaM witch is the map base. It turns my map black.Heres party of the code ive done:int mapa[8][8] = {{1,1,1,1,1,1,1,1},{1,1,1,2,2,1,1,1},{1,1,1,2,2,1,1,1},{1,1,1,2,2,1,1,1},{1,1,1,2,2,1,1,1}};int x, y; int tx = 0; int ty = 100;for(y=0;y<8;y++){for(x=0;x<8;x++){switch(mapa[y][x]){case 1: draw_sprite(*mapaM, tile, tx, ty); break;case 2: draw_sprite(*mapaM, tile2, tx, ty); if(mapa[x+1][y]==1) draw_sprite(*mapaL1, grama6, tx, ty);if(mapa[x-1][y]==1) draw_sprite(*mapaL1, grama4, tx, ty);if(mapa[x][y+1]==1) draw_sprite(*mapaL1, grama2, tx, ty);if(mapa[x][y-1]==1) draw_sprite(*mapaL1, grama8, tx, ty); break; }tx+=16; ty-=8; }ty = 100+(1+y)*8;tx = (y+1)*16;} The * on variables is cause theyr function reference.Thanx for any help.   