HowToUseTiledToCreateStendhalMaps: Difference between revisions
Content deleted Content added
imported>AntumDeluge →Parallax Background Support: clarification on parallax definition |
imported>AntumDeluge →Parallax Background Support: how to specify multiple tilesets to ignore |
||
| (4 intermediate revisions by the same user not shown) | |||
Line 252:
= Parallax Background Support =
A parallax background is an image that scrolls at a different rate relative to normal map layers. It is drawn under map layers and visible where tile image data is not used (fully transparent through all layers). The image can be specified in a zone's XML config using the attribute name "parallax" (example: {{StendhalFile|
However, when adding parallax backgrounds to maps, there are some things to consider for maintaining backward compatibility with the classic Java client. Transparent areas in a map will simply be black in the Java client. So, unless specifically desired, map data should not contain fully transparent areas. But there are two methods that can be used to instruct supporting clients on where to draw transparency on the map:
# You can specify tilesets to be ignored by the
# An additional layer named "0_floor_parallax" can be added the TMX map file. The layer should be identical to "0_floor" excluding the portions that should be transparent. An example of how this is done can be found in map of {{StendhalFile|
= How to use the map in Stendhal =
| |||