ID:169796
Apr 30 2005, 5:53 am
|
|
How do I put a bmp directly into my map? If that can't be done, is there an easy way to cut it into tiles using DM?
|
In response to Wizkidd0123
|
|
<3THX
|
In response to Lunaofthemoon
|
|
And how would you go between two different map files? I mean, how would I code something that changes which map file you're on?
|
In response to Lunaofthemoon
|
|
turf/myturf Like that? |
In response to Almasy
|
|
No. That's the same map. I want to move the person from map1.dmp to map2.dmp, for example.
|
In response to Lunaofthemoon
|
|
Map files are compiled into successive Z layers. So if map1 and map2 are your maps, then map2 will compile as the z levels after map1's (IE if map1 has 2 z levels which become z levels 0 and 1, map2 will be z level 2).
You can also simply look for targets (areas/objs/etc) to move to. |
In response to Jmurph
|
|
kk
|
In response to Jmurph
|
|
DM references lists startingat index 1.
There is no z-layer 0. It starts at 1. Your statement is pretty valid, otherwise. |
In response to Almasy
|
|
Almasy wrote:
> turf/myturf Like that? Not even close. You should be using Entered() here, and you're absuing usr: use Entered()'s argument instead: turf/my_turf/Entered(mob/M) |
In response to Jmurph
|
|
To elaborate, the maps get stacked on to each other in alphabetical order. If you have two maps, "map_a.dmp" and "map_b.dmp", "map_a.dmp" would start on the first z level, while "map_b.dmp" would come after.
|
In response to Ter13
|
|
Oops, my bad. Good catch.
|
Lunaofthemoon wrote:
How do I put a bmp directly into my map? If that can't be done, is there an easy way to cut it into tiles using DM? turf/myturf But turf/myturf You should always use png on the web, and you put the image in your game file. |
Easy! Just do something like this, and stick it right on the map using the map editor:
However, .bmp files are largely unsuitable for online use: the format simply wasn't made for it! Use a .png file instead!
Yes! Open up a .dmi file in Dream Maker, click on the "Graphics" menu, click on "Import..." and select the .bmp or.png that you want to cut up!