19-12-2007, 07:02 PM
If you're trying to make it so that you can use multiple tilesets to map on the same map...Well. I strongly discourage that. Your game will eat tons of memory doing it like that. I've done it pretty much like Robin and Dave have said.
I've got a combo box on the map properties form that lets me choose a tile set. All you have to do in modDirectX is copy and paste the map stuff, and rename for as many tile sets as you have. I took the route of Forest.bmp and Village.bmp and such.
Then all you have to do is add some if statements (or select case) in bltTile and bltFringe. Then in the map done packet it, call a sub that destroys the old surface, and loads a new one if necessary when changing maps.
I've got a combo box on the map properties form that lets me choose a tile set. All you have to do in modDirectX is copy and paste the map stuff, and rename for as many tile sets as you have. I took the route of Forest.bmp and Village.bmp and such.
Then all you have to do is add some if statements (or select case) in bltTile and bltFringe. Then in the map done packet it, call a sub that destroys the old surface, and loads a new one if necessary when changing maps.