I'm sure i've seen this discussed before, but I can't remember where. I want to create a background image that will span the entire game board (20x20 tiles). I cropped my bitmap image at approx. 640x640 pixels, so I have the right size. However, I'm not sure what to do next.
Thanks!
ID:179143
Feb 12 2002, 8:04 pm
|
|
Feb 12 2002, 8:06 pm
|
|
Good question, and yes byond does support .bmp and .png (only beta) images as tiles, you'd do it just like any other atom:
|
In response to Nadrew
|
|
I tried this, but it repeats the same image on every tile. How do I convert the image into 400 different tiles covering the entire board?
Nadrew wrote: Good question, and yes byond does support .bmp and .png (only beta) images as tiles, you'd do it just like any other atom: > turf/bg |
In response to Dramstud
|
|
It should do that for you, but there's a good image spliter listed in the FAQ.
|
In response to Nadrew
|
|
Did i need to make it a .png first? Or is there something special I need to do with the map file to get it to work? I looked through all the menus in the map editor and couldn't find anything...
Nadrew wrote: It should do that for you, but there's a good image spliter listed in the FAQ. |
In response to Dramstud
|
|
turf/bg Should show up on the file tree like: +turf -bg And, having it as .png only reduces the size of your game. |
In response to Nadrew
|
|
I am familiar with what you are trying to do here. For the sake of reference, lets say you have:
turf/background icon = 'background.bmp' did you also specify: world turfs = /turf/background Becuase if you did, it will not display the entire bmp as you desire, but will instead display the first 32x32 piece of the bmp in every spot on the map. To get the entire picture, simply select the turf in the object tree in DM and add it to the map manually. The selection box should resize itself to 640x640, so you can easily place the rather cumbersome image. Hope that helps! ~X |
dramstud wrote:
I'm sure i've seen this discussed before, but I can't remember where. I want to create a background image that will span the entire game board (20x20 tiles). I cropped my bitmap image at approx. 640x640 pixels, so I have the right size. However, I'm not sure what to do next. From all the information provided, am I right to say that Byond do not support a single pic as the game boards? |
In response to Xooxer
|
|
Ah, I totally forgot about it doing that, yes you have to manually add it to the map.
|
In response to Xooxer
|
|
yep, this was my problem. Once I switched to a different turf name (which was different from what world/turfs was set to), it worked fine.
Thanks guys! Xooxer wrote: I am familiar with what you are trying to do here. For the sake of reference, lets say you have: |
In response to Xooxer
|
|
I have a related question, though more complicated:
If I change the turf during the game, can I ever get the large bitmap background back again? I wanted to give the host the power to change the background, but it would only work if I can do this. thanks! Xooxer wrote: I am familiar with what you are trying to do here. For the sake of reference, lets say you have: |
In response to Dramstud
|
|
just bumping this question up, as it is holding up my next release.
dramstud wrote: I have a related question, though more complicated: |
In response to Dramstud
|
|
dramstud wrote:
I have a related question, though more complicated: Look up the icon_states() proc in the reference. It has an example of how to assign large objects at runtime. |
In response to Tom
|
|
awesome!! thanks!
Tom wrote: dramstud wrote: |