Xlithan Posted March 11, 2016 Author Share Posted March 11, 2016 ADDING MORE LAYERS– A Tutorial by Xlithan --Having more layers in your map editor can be very beneficial. It can be useful when creating more complexmapping. For basic mapping, 2 masks and 2 fringes should be enough, but I have definitely benefited from havingextra layers in my map editor.This tutorial should also work for older versions of Eclipse as the source code is mostly similar.Firstly, we need to create extra option buttons. So locate to **_fraLayers_** in **_frmEditor_Map_**. You may need to bring it to the front.![](http://i.snag.gy/kolgK.jpg)Just remember, that these option buttons are in an index array. So just adding in the extra option buttons will result in your client crashing. You need to ensure that the array goes from 1 (Ground layer) to however many layers you have, in order. So you will need to swap a few index's around.Next, you need to go to _**modEnumerations**_ in both Client and Server source code, and find **_Public Enum MapLayer_**.Add your extra layers. If you're adding 2 extra masks and 2 extra fringes like I have done, then it needs to look like this:```' Layers in a mapPublic Enum MapLayer Ground = 1 Mask Mask2 Mask3 Mask4 Fringe Fringe2 Fringe3 Fringe4 ' Make sure Layer_Count is below everything else Layer_CountEnd Enum```**The following is all client-side**Next we need to go to **_Public Sub ScreenshotMap()_** and replace the following:**_Change:_**```For I = MapLayer.Ground To MapLayer.Mask2```**_To:_**```For I = MapLayer.Ground To MapLayer.Mask4```And also…**_Change:_**```For I = MapLayer.Fringe To MapLayer.Fringe2```**_To:_**```For I = MapLayer.Fringe To MapLayer.Fringe4```Then we need to move on to **_Public Sub DrawMapTile_**, and replace the following:**_Change:_**```For I = MapLayer.Ground To MapLayer.Mask2```**_To:_**```For I = MapLayer.Ground To MapLayer.Mask4```And finally…**_Change:_**```For I = MapLayer.Fringe To MapLayer.Fringe2```**_To:_**```For I = MapLayer.Fringe To MapLayer.Fringe4``` Link to comment Share on other sites More sharing options...
Lavos Posted March 12, 2016 Share Posted March 12, 2016 wow, have you test the performance on a fully built map with all layers used? Lets say 50 x 50? Link to comment Share on other sites More sharing options...
Xlithan Posted March 12, 2016 Author Share Posted March 12, 2016 Don't make your maps so large :) And yes. I have tested this on a 100x100 map using all layers. Link to comment Share on other sites More sharing options...
Lavos Posted March 12, 2016 Share Posted March 12, 2016 @'Xlithan':> Don't make your maps so large :) And yes. I have tested this on a 100x100 map using all layers.…................and....well?! Link to comment Share on other sites More sharing options...
Helladen Posted March 13, 2016 Share Posted March 13, 2016 Using that many layers is just stupid. Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted March 13, 2016 Share Posted March 13, 2016 No, I can see a use for 3-5 per layer, but I map quite a bit or have in the past, each mapper is different and it depends on the mapper and tilesets they have when it comes to how many layers they want Link to comment Share on other sites More sharing options...
Xlithan Posted March 13, 2016 Author Share Posted March 13, 2016 Don't forget. You're not going to have layers on top of layers. The extra layers you'll probably only use 2-3 times on a map. They are there for more complex mapping, not for basic newb mapping. Stick to your standard layer count if you don't wanna use this, nobody is forcing you lol. Link to comment Share on other sites More sharing options...
Colonello Posted March 13, 2016 Share Posted March 13, 2016 Awesome tutorial. :) More layers are a blessing in eclipse engines. Anything more complex than a map you'd see in the original Final Fantasies and Pokemon GBA games will typically need more than just 2 or 3 layers. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now