HowToUseTiledToCreateStendhalMaps: Difference between revisions

Content deleted Content added
imported>Kiheru
m Editing the map: Explicitly mention the layer(s) where tree tops should be
imported>Kiheru
Editing the map: Added instructions for drawing trees
Line 166:
Now let's add houses and a tree to our village. As you can see adding elements isn't hard, you simply must flip between layers.
 
And now for the tree. Trees are a bit more complex than houses because they are split over two layers: 1 and 2. <br>Make sure that the <b>upper part</b> of the tree is <b>always</b> on either <b>3_roof or 4_roof_add</b>. This will mean it is drawn over player when they stand 'behind' it.
 
First we add ''tileset/plant/tree/spruce.png'', and then draw the lower part of it to the ''1_terrain'' layer.
http[[Image://arianneTiled12.sourceforge.net/wiki_images/tiled_25.jpg png]] <br><small>Figure 1710: The foot of the tree on the floorterrain layer</small><br>
 
Now switch to the roof layer. The roof layer is for objects that are drawn on top of players and creatures in the game.
We add the bottom of the tree, tile by tile.<br> Now switch to the roof layer.
 
Draw the upper part of the tree on roof layer.
http://arianne.sourceforge.net/wiki_images/tiled_26.jpg <br><small>Figure 18: The roof layer is for objects on top of everything</small><br>
 
Now[[Image:Tiled13.png]] we<br><small>Figure add11: theThe upper part of the tree on layerthe roof layer</small><br>
 
http://arianne.sourceforge.net/wiki_images/tiled_27.jpg <br><small>Figure 19: The upper part of the tree on the roof layer</small><br>
 
Let's practice this. Let's add another tree.
 
http[[Image://arianneTiled14.sourceforge.net/wiki_images/tiled_28.jpgpng]] <br><small>Figure 2012: The bottom of our second tree</small><br>
 
Remember how to deal with two layers? Make sure the top of the tree is on the roof layer.
 
[[Image:Tiled15.png]] <br><small>Figure 13: The Top of our second tree</small><br>
 
Still there? Good, now let's add lots of details to make a good map!