Original Post
Hey, I was curious if anyone could help me understand why I try to blit 25 tiles by using a couple for loops, but it misses 5 of the objects. I'm thinking my math is a little rusty... but if you could take a look and see if you think it should blit a 5x5 map of tiles. BITMAP_OBJ map[5][5] I am loading the tiles by using for(int x = 0; x < 5; x++) for(int y = 0; y < 5; y++) { Create_Bitmap_Object(↦[x][y], 64, 64, 0, DDSCAPS_SYSTEMMEMORY); Load_Object(↦[x][y], &bitmap, cx, cy, 0); if(cx < 5) cx++; else { if(plus == 0) { cy = 1; plus++; } else { plus = 0; cy = 0; } cx = 0; } map[x][y].x = x*(64-1); map[x][y].y = y*(64-1); } } i want the tiles to look like : 00000 00000 00000 00000 00000 instead i get at position 0, 0 00000 00000 00000 00000 its missing the bottom row. So any help would be appreciated. my email is Nokame@hotmail.com Thanks.