Original Post
Hi there! Im having trouble with my map array and have a few questions. This might be a bit tricky to explain so please bare with me! ;-) Basically i have a map array like so... #define MAP_WIDTH 16 #define MAP_HEIGHT 16 m_iIsoMap[MAP_WIDTH][MAP_HEIGHT]; I want MAP_WIDTH and MAP_HEIGHT to be able to hold the dimensions of the map. Is there a way for me to use a different kind of subscript, like int's? So the code would look something like this: int m_iWidth; int m_iHeight; m_iIsoMap[m_iWidth][m_iHeight]; But when i do it like that i get alot of errors because the arent constants. I wanto be able to do it that way because i wanto be able to just call a function simmilar to "SetMapSize(int iWidth,int iHeight) to set the maps size. So basically i just wanto be able to change the size of the map without having to use a pre-determined size. Can anybody think of a way i can do this, or a simmilar way. Any advice or ideas are welcome... I hope it makes sense ;-/ Thanks!