Displaying multiple tile maps
Posted: Fri Aug 02, 2013 1:48 pm
I'm making a game and using Tiled to create a .lua file. I get rid of the irrelevant data and leave myself with just the table containing the map tiles and another table containing information about the tiles (walkable/solid/etc). I also have information tiles that are towards the edge of the map that I want to use to start loading the next area.
This is all going fine, but I don't know how to display the transition between the current tile map and the next tile map efficiently. I don't want to expect different tile maps to be the same height and width (in tiles, not pixels).
I know that offsetting the current map will probably be part of the solution, but I don't really know how to make the next map line up with the current one.
I've included the .love file - I'm trying to make a general tiled RPG engine and a Pokemon Emerald clone along side it. When I finish the clone, I assume that once I strip all the Pokemon related stuff from the engine, it should be suitable for any type of tile RPG.
My Github repository is https://github.com/Djent-/Pokemon-Lua. I'd make a thread in Projects/Demos, but I don't think this project is worthy yet.
This is all going fine, but I don't know how to display the transition between the current tile map and the next tile map efficiently. I don't want to expect different tile maps to be the same height and width (in tiles, not pixels).
I know that offsetting the current map will probably be part of the solution, but I don't really know how to make the next map line up with the current one.
I've included the .love file - I'm trying to make a general tiled RPG engine and a Pokemon Emerald clone along side it. When I finish the clone, I assume that once I strip all the Pokemon related stuff from the engine, it should be suitable for any type of tile RPG.
My Github repository is https://github.com/Djent-/Pokemon-Lua. I'd make a thread in Projects/Demos, but I don't think this project is worthy yet.