So, Let's go.
The better way: Please read replies #2 and #3.
Another way:
First, as everyone knows, to make buildings rotatable, you have to provide 4 frames, animation is the same.
Code: Select all Reset
[ { "id": "$animation00", "type": "animation", "frames": [ {"bmp": "image.png"} ] }, { "id": "$animation01", "type": "animation", "frames": [ {"bmp": "image.png"} ] }, { "id": "$animation02", "type": "animation", "frames": [ {"bmp": "image.png"} ] }, { "id": "$animation03", "type": "animation", "frames": [ {"bmp": "image.png"} ] } ]
JSON checker
Code: Select all Reset
[{ //…… "animation": [ {"id": "$animation00"},{"id": "$animarion01"},{"id": "$animation02"},{"id": "$animation03"} ], "frame animation indices": [ [0],[1],[2],[3] //If the animations rotate incorrectly, you can try [3],[2],[1],[0]. ] }]
JSON checker
As everyone knows, the worlds in TheoTown has four directions: SE,NE,NW and SW.These four items([]) correspond to the four directions one by one.
So, the "0" in the first item means that animation00 will be shown in the SE direction, the "1" in the second item means that animation01 will be shown in the NE direction and so on.
Hope this will help you.