Ok heres some code:
Code:
//In class:
struct tile ***iso_map;
//Declaring 3D array of structs:
**iso_map=new int[map_height]; //dynamically declare 3D array
for (int a=0; a<map_height; a++) {
*iso_map[a]=new int[map_width];
for (int b; b<map_width; b++) {
iso_map[a][b]=new int[map_length];
}
}
//Above class:
class map *maps;
//Declaring map(only 1 right now):
maps=new class[1];
Thats what is there right now, split alot of course cause its like 250 lines of code
After looking at your stuff, there seems to be a better way to declare the array of class's, but the problem is that Im using a header file to declare the maps and such, and they arent at the top of the file(need to be below class and struct) Im starting to think that I should change it to file i/o now instead of later? I think that might fix. Ill go through my code, fix it up, and try posting more later.
Until then, you guys try to help
Edit: Heres the last error'd line, annoying one it is. Gives me a few things to ask, but first the code:
Code:
draw_sprite(buffer, (BITMAP *)tiles[maps[0].iso_map[z][x][y].tilename].dat, (maps[0].map_start[0])+(x*(maps[0].map_difference[0])), (maps[0].map_start[1])+(y*(maps[0].map_difference[1]));
(Long, eh? )
1. Can you declare what tile in the method I used, or is there a problem in that?
2. Why does it act like 'tiles' is a function?
3. Where is the syntax error?(Im guessing the tiles thing)