ID:1276587
 
(See the best response by FIREking.)
I was wondering how to add more areas on a map. For example going from a class room to a hall way without needing to have 1 huge map. In my game I would like to have different zones like cities, caves, forest etc... Any easy way I can do this?

Check out http://www.byond.com/developer/FIREking/SmoothTileMovement where I use an area that can transport you anywhere in the map using "tags"
cool I'll check it out. Thanks.
So this just shows how to incorporate "portals" using tags thus making map size smaller?
In response to Thedeadwarrior123
Thedeadwarrior123 wrote:
So this just shows how to incorporate "portals" using tags thus making map size smaller?

It shows you how to transport players to other places on the map. If you have a 12x12 map with 1000 Z layers or a 300x300 map with 4 z layers, its all the same to the transport system, it will just teleport you to the tag, wherever it is on the map.

So for example, you could make z layer 3 your "forest" and z layer 4 your "city".
Hmmmm. Awesome. Thanks a lot for your help. One last thing. How would I add extra z levels to a map I already made?
Open the map, go to options and click set map size.
Ok thanks.
Another thing to note is that if you have more than one DMM file in a project, they are added to additional z layers in alphabetical order...

so if you have maps "a.dmm, b.dmm, c.dmm" and map a has 2 z layers, map b would be z layer 3 and map c would be z layer 4.
Ok Noted. Wait, so if I made 2 maps their just on different z layers. I didnt know that?
In response to Thedeadwarrior123
Thedeadwarrior123 wrote:
Ok Noted. Wait, so if I made 2 maps their just on different z layers. I didnt know that?


Yeah, but there's no difference between having multiple map files and having multiple z layers.

At runtime, every map will become the same size as the biggest map.
if thats so how can i connect different map files so it works like the portals? And how to have more than 2 portals?
In response to Thedeadwarrior123
Best response
Thedeadwarrior123 wrote:
if thats so how can i connect different map files so it works like the portals? And how to have more than 2 portals?

Create a map, call it forest
Set its size to 32x32
Select area/transfer from objects tab
Draw it on the map
Right click the area/transfer you just drew
Hover your mouse over the area/transfer in the pop up menu
Let the context menu open, select edit
Go to tag and put "city"
Go to log_tag and put "forest"

Create another map, name it city
Set its size to 100x100
Select area/transfer from objects tab
Draw it on the map
Right click the area/transfer you just drew
Hover your mouse over the area/transfer in the pop up menu
Let the context menu open, select edit
Go to tag and put "forest"
Go to log_tag and put "city"
so this makes the transfer a "mate"?... Another portal that the other is linked to?
while were talking about maps when i load my game my screen is black and the map wont show. Any idea why?