HowToUseTiledToCreateStendhalMaps2: Difference between revisions
Content deleted Content added
imported>Danter |
imported>Danter |
||
Line 55:
=Animations=
Ok, map is done, ready to comitt... but there is still one more thing we need to do to have some movement in the
<br>
Animations is a bit troblesome to do right now
<br>
Line 66:
addAnimatedTile(112,new int[]{112,22,52,82,82,82,82,82,82,82});<br>
<br>
Now the double daisy has 4 animation tiles in the outside_0 tileset, what we do is count to these tile positions from the start in the tileset to the tile we want, starting in the upper left corner, going towards right, then jump to the next row in the tileset, until we encounter the tile we want (math is a good friend here....) then we write that tileid down at the first place (outside the {} parantheses). This will tell that this tile will have an animation, that goes in the order described inside the {} parantheses. Repeat this process for all the tiles you want animated, and they will be animated ingame later when server resets. If the lines for the tiles you want animated already exist, you don't need to bother about animations thou, cause those tiles will already be animated.<br>
<br>
| |||