ID:272635
Nov 7 2008, 7:18 am
|
|
Can someone tell me if there's a way to put a picture on the map instead of coloring the pictures background with the 32 pixels tile colors?
|
In response to Ter13
|
|
Well I've been coding on BYOND for 4 years I just haven't coded images for awhile.
My bad. |
In response to Gizhy Games
|
|
Your terminology is fuzzy here.
Images are something quite different than icons, and again, are something quite different from atoms. Icons are simple image files. They can also refer to the icon object, which is a dynamically generated image file at runtime. Atoms are objects that can appear on the map, and thus can be assigned an icon. Now, images are something much more interesting. The actual /image object is actually a purely visual effect you can display player-by-player. It would do to look up information on them in the reference. Now, I'm not entirely sure which of these three you were speaking of, but as I said, four years or not, you need a tutorial. The jargon may be the only thing escaping you, but it is quite necessary to learn this jargon to effectively communicate during a development discussion, such as this one. |
Gizhy Games wrote:
Can someone tell me if there's a way to put a picture on the map instead of coloring the pictures background with the 32 pixels tile colors? That's a pretty vague/badly explained question, I'm going to assume you're asking if it's possible to put a large 'picture' on the map at once instead of having to put it piece-by-piece after splitting it to 32x32. Well, like suggested by Ter at runtime the map simply consists of 32x32 atoms (turfs, mobs...) and you need to use more than 1 atom for a bigger 'picture', however there's a convenient feature of the Map Editor you can utilize to do this. If you set an atom's icon directly to an image file (not a DMI) that is larger than 32x32, for example like this: turf Then when you go to the map editor and place down /turf/my_picture on the map, you'll find the cursor for placing is sized the correct amount and is big, and one click places the whole 'big image'. Note you ARE placing multiple turfs like this still, every 32x32 chunk of your image is a separate turf - the map editor is automatically splitting it up for your convenience. |
You have to create an icon, and then define a turf and assign the turf's icon to that icon you created, compile, then select it and paint it onto the map.
Seems like you are in need of a good tutorial!