For example something like roboport or electric furnace. It will be good, when it will be possible to set speed of animation and type of playing (cycle, just once, forward-reverse and just reverse once).
from electric furnace, it has animated ventilator
Code: Select all
animation =
{
layers = {
{
filename = "__base__/graphics/entity/electric-furnace/electric-furnace-base.png",
priority = "high",
width = 129,
height = 100,
frame_count = 1,
shift = {0.421875, 0},
hr_version = {
filename = "__base__/graphics/entity/electric-furnace/hr-electric-furnace.png",
priority = "high",
width = 239,
height = 219,
frame_count = 1,
shift = util.by_pixel(0.75, 5.75),
scale = 0.5
}
},
{
filename = "__base__/graphics/entity/electric-furnace/electric-furnace-shadow.png",
priority = "high",
width = 129,
height = 100,
frame_count = 1,
shift = {0.421875, 0},
draw_as_shadow = true,
hr_version = {
filename = "__base__/graphics/entity/electric-furnace/hr-electric-furnace-shadow.png",
priority = "high",
width = 227,
height = 171,
frame_count = 1,
draw_as_shadow = true,
shift = util.by_pixel(11.25, 7.75),
scale = 0.5
}
}
}
},
working_visualisations =
{
{
animation =
{
filename = "__base__/graphics/entity/electric-furnace/electric-furnace-heater.png",
priority = "high",
width = 25,
height = 15,
frame_count = 12,
animation_speed = 0.5,
shift = {0.015625, 0.890625},
hr_version = {
filename = "__base__/graphics/entity/electric-furnace/hr-electric-furnace-heater.png",
priority = "high",
width = 60,
height = 56,
frame_count = 12,
animation_speed = 0.5,
shift = util.by_pixel(1.75, 32.75),
scale = 0.5
}
},
light = {intensity = 0.4, size = 6, shift = {0.0, 1.0}, color = {r = 1.0, g = 1.0, b = 1.0}}
},
{
animation =
{
filename = "__base__/graphics/entity/electric-furnace/electric-furnace-propeller-1.png",
priority = "high",
width = 19,
height = 13,
frame_count = 4,
animation_speed = 0.5,
shift = {-0.671875, -0.640625},
hr_version = {
filename = "__base__/graphics/entity/electric-furnace/hr-electric-furnace-propeller-1.png",
priority = "high",
width = 37,
height = 25,
frame_count = 4,
animation_speed = 0.5,
shift = util.by_pixel(-20.5, -18.5),
scale = 0.5
}
}
},
{
animation =
{
filename = "__base__/graphics/entity/electric-furnace/electric-furnace-propeller-2.png",
priority = "high",
width = 12,
height = 9,
frame_count = 4,
animation_speed = 0.5,
shift = {0.0625, -1.234375},
hr_version = {
filename = "__base__/graphics/entity/electric-furnace/hr-electric-furnace-propeller-2.png",
priority = "high",
width = 23,
height = 15,
frame_count = 4,
animation_speed = 0.5,
shift = util.by_pixel(3.5, -38),
scale = 0.5
}
}
}
},