Thanks for some code, Zamaster. I appreciate the help.
I forgot to mention that I'm using Freebasic, btw.
Also, I need my drawmap routine to be as fast as I can get it. When I load the map I want that data to be put in an array because of the fact that reading from ram is a hell of a lot faster than accessing a hard drive.
What would be the fastest way to store data like this?
Again, not looking for code, just some tips on a good method to store and retrieve this data in the fastest possible way.
And one last little question, the way the map format is now, a layer can only use 1 tileset. I was wondering if I wanted to use multiple tilesets on a layer, should I insert a tileset name when I want to switch to a different tileset...
like so:
Code: Select all
map data:
$tileset_1,0,0,0,0,0,0,$tileset_4,0,0,0,0,0,0
...Or should I just have sub-layers in each layer. So every sub-layer can only use one tileset but all together they make a one layer that uses multiple tilesets?
I'm not very good at trying to describe my ideas so if you want me to elaborate and try to explain things better I'll give it a shot.
Thanks so much to any of you that help.
Dave