This is an example.
It uses the same .png file for the base and the animations in different colors, speeds, and opacity.
The "a"= 0 to 255 controls the opacity.
The image is in different shades of grey and transparency to see how the coloring differs.
Code: Select all
[
{
"id":"$greytow",
"type":"animation",
"light":true,
"light switching":false,
"frames": [
{"bmp":"greytile.png","handle y":8},
{"bmp":"greytile.png","handle y":8},
{"bmp":"greytile.png","handle y":8},
{"bmp":"greytile.png","handle y":8},
{"bmp":"greytile.png","handle y":8},
null,
null,
null,
{"bmp":"greytile.png","handle y":8},
{"bmp":"greytile.png","handle y":8},
{"bmp":"greytile.png","handle y":8},
{"bmp":"greytile.png","handle y":8},
{"bmp":"greytile.png","handle y":8}
],
"handle interpolation":26,
"color":{"r":300,"g":300,"b":300,"a":55}
},
{
"id":"$greytor",
"type":"animation",
"light":true,
"light switching":false,
"frames": [
{"bmp":"greytile.png","handle y":8},
{"bmp":"greytile.png","handle y":8},
{"bmp":"greytile.png","handle y":8},
{"bmp":"greytile.png","handle y":8},
{"bmp":"greytile.png","handle y":8},
null,
{"bmp":"greytile.png","handle y":8},
{"bmp":"greytile.png","handle y":8},
{"bmp":"greytile.png","handle y":8},
{"bmp":"greytile.png","handle y":8},
{"bmp":"greytile.png","handle y":8}
],
"handle interpolation":8,
"color":{"r":300,"g":0,"b":0,"a":255}
},
{
"id":"$greytob",
"type":"animation",
"light":true,
"light switching":false,
"frames": [
{"bmp":"greytile.png","handle y":8},
{"bmp":"greytile.png","handle y":8},
{"bmp":"greytile.png","handle y":8},
{"bmp":"greytile.png","handle y":8},
{"bmp":"greytile.png","handle y":8},
null,
{"bmp":"greytile.png","handle y":8},
{"bmp":"greytile.png","handle y":8},
{"bmp":"greytile.png","handle y":8},
{"bmp":"greytile.png","handle y":8},
{"bmp":"greytile.png","handle y":8}
],
"handle interpolation":8,
"color":{"r":30,"g":0,"b":200,"a":205}
},
{
"id": "$greyledex",
"title": "greyledex",
"text": "greyledex",
"build time": 0,
"price": 10,
"removable": true,
"needs road": false,
"hidden": false,
"draw ground": true,
"max count":5,
"type": "decoration",
"frames": [{
"bmp": "greytile.png"
}],
"width": 1,
"height": 1,
"animation":[
{"id":"$greytow","x":0,"y":-8},
{"id":"$greytob","x":0,"y":-16},
{"id":"$greytor","x":0,"y":-24},
{"id":"$greytow","x":0,"y":-32},
{"id":"$greytor","x":0,"y":-40},
{"id":"$greytow","x":0,"y":-48},
{"id":"$greytor","x":0,"y":-8},
{"id":"$greytow","x":0,"y":-16},
{"id":"$greytor","x":0,"y":-24},
{"id":"$greytob","x":0,"y":-32},
{"id":"$greytor","x":0,"y":-40},
{"id":"$greytow","x":0,"y":-48}
]
}
]