Vlue 269 Posted September 18, 2013 (edited) Multiple Map Layers v1.0By Vlue IntroductionErmagerd, I have no idea what to name this. But let's carry on, this script let's you layer one or two maps on top of another! Even if they have like different tilesets! Which is the point. Is this considered parallax mapping? I don't really know what that is... anyways.Features- Squish 2-3 maps together to make a mega map.ScreenshotsMaybe later.How to UseInstructions in script.ScriptGrab it here! http://pastebin.com/KXbFkx9sCredit and Thanks- By Vlue- Free for use in any project, commercial or non-commercial with credit given, woo Edited October 1, 2014 by Vlue 3 Wren, CT Bolt and Darkanine reacted to this Share this post Link to post Share on other sites
Darkanine 116 Posted September 18, 2013 I think I love you. 1 Vlue reacted to this Share this post Link to post Share on other sites
CT Bolt 23 Posted September 19, 2013 Excellent idea! I am receiving this error though. The map's note I use is this: <LAYER2 2> Am I doing something wrong? Share this post Link to post Share on other sites
Vlue 269 Posted September 19, 2013 Did I not.. oops I didn't. I was using a function from another one of my scripts to get the note box for the map until I realized, that that was already in the map, but I forgot to change it. My bad! (It'd work if you had that script in there! :3) Fixed it on the pastebin~ 1 CT Bolt reacted to this Share this post Link to post Share on other sites
KaylieMarie 9 Posted September 19, 2013 If this is what I think it is, this is pretty cool! Quick question (since I'm in school right now. Don't question why I'm online if I'm at school. Lol!) Do the copied maps retain their movement settings? I.E. If a tree base is impassible will it still be impassible when copied over? I hope that makes sense. If not, I'll just try it when I get home tonight. Share this post Link to post Share on other sites
Vlue 269 Posted September 19, 2013 Yes! There won't be any weird invisible walkable trees or anything. Or there better not be. Each map layer is check for passability. Share this post Link to post Share on other sites
CT Bolt 23 Posted September 19, 2013 (edited) Did I not.. oops I didn't. I was using a function from another one of my scripts to get the note box for the map until I realized, that that was already in the map, but I forgot to change it. My bad! (It'd work if you had that script in there! :3) Fixed it on the pastebin~ lol, I kinda thought that might have been the issue. Awesome! Now I can manage to get it to work but it seems like it needs some error checking. The only way I don't receive that error is to modify the script a little. I changed create_tilemap into this and it works great. def create_tilemap mm_create_tilemap @tilemap1 = Tilemap.new(@viewport1) if $game_map.layer1 @tilemap1.map_data = $game_map.layer1.data end @tilemap2 = Tilemap.new(@viewport1) if $game_map.layer2 @tilemap2.map_data = $game_map.layer2.data end load_tileset end ...so again I have to ask... am I doing anything wrong? Edited September 19, 2013 by CT Bolt 1 Vlue reacted to this Share this post Link to post Share on other sites
Vlue 269 Posted September 19, 2013 No... stop asking if you're doing something wrong! This is just the results of my extensive and exhaustive unthorough testing process. (You'd be surprised at how little I do actually test these things...) This one being the result of never starting in a map that didn't have extra layers. It doesn't like that... Thanks for the report! Fixed up the pastebin for that. 2 KaylieMarie and CT Bolt reacted to this Share this post Link to post Share on other sites
CT Bolt 23 Posted September 19, 2013 (edited) No... stop asking if you're doing something wrong! lol, k... just had to make sure. This is just the results of my extensive and exhaustive unthorough testing process. (You'd be surprised at how little I do actually test these things...) This one being the result of never starting in a map that didn't have extra layers. It doesn't like that... lol, ahhh I see I see. Thanks for replying to quickly. Thanks for the report! Fixed up the pastebin for that. No prob. Glad to test such an amazing & innovative script. THANK YOU! I will continue to do "tests"; Everything is working wonderfully now. Edit: This isn't really a problem but... I noticed if the map being placed on top of the base map must be at least as big as the base map or the top map will loop... Kind of an interesting effect, perhaps you intended it to happen that way? Edited September 19, 2013 by CT Bolt 1 Vlue reacted to this Share this post Link to post Share on other sites
jhondidfool 2 Posted September 19, 2013 I fell in love with this script... 1 Vlue reacted to this Share this post Link to post Share on other sites
Vlue 269 Posted September 19, 2013 Edit: This isn't really a problem but... I noticed if the map being placed on top of the base map must be at least as big as the base map or the top map will loop... Kind of an interesting effect, perhaps you intended it to happen that way? Actually no... writing the script I only thought in like-sized maps, but it was brought up elsewhere that smaller maps on top get looped, which I have to look into. 1 CT Bolt reacted to this Share this post Link to post Share on other sites
Vlue 269 Posted September 19, 2013 (edited) There we go, cleaned up the script, and now instead of just 1 or 2 silly layers you can have an infinite number of extra maps squishing on top, the only caveat however, is that they all do have to be the same size. As it currently stands, I'm not seeing a way around that, but regardless, minor thing! Enjoy~ EDIT: Whoops, broke double-post rule, but see no way to delete this. Sorry >.< Edited September 19, 2013 by Vlue 1 CT Bolt reacted to this Share this post Link to post Share on other sites
+ dbchest 160 Posted September 20, 2013 this is exciting. another fine work, Vlue. 1 Vlue reacted to this Share this post Link to post Share on other sites
Wren 179 Posted September 20, 2013 So cool. Now we can make all sorts of hybrid maps. 2 dbchest and Vlue reacted to this Share this post Link to post Share on other sites
Venusaur 12 Posted September 20, 2014 You mentioned how the script wasn't "too cleaned up" and that you'd be willing to do so on request... Could you please? This script has been fantastic so far! Share this post Link to post Share on other sites
Vlue 269 Posted October 1, 2014 Already did (wow, almost exactly a year ago, one day from your post). It was updated and allows for an infinite number of layers. Share this post Link to post Share on other sites
Akari_Tsukino 0 Posted January 19, 2015 how does this work exactly? like, could you have one map with a skyscraper and then another layer with what's behind the skyscraper? Share this post Link to post Share on other sites