Re: an array in an array...
Instead of putting a third dimension onto your list, why not put your data into a structure or class and create a linked list? Instead of a single link, you could have four... one for each direction. Then you could easily and efficiently decide what map to load based on situations that arise.
Originally posted by Supar
I have made several "maps" and would like an easy way to call all of them into a function.
the maps look similiar to:
now to call it into a function i merely did...
so that all works good and fine...until a character walks off the edge of the map...
int MAPFUNCTION(char Pmap,int sx,int sy,int drct)
for(int y=0;y<40; y++)
i need someway to call in the next map...which i could do if I could put each of the maps into an array...or something similiar...just wondering what i could do...
BTW:i cut alot out of my code...so its small enough to glance over...
It may be a little over your head, (I have no idea what your coding abilities are though) but I think it would be a much better design.