Electric Energy Interface Animations
Posted: Thu Apr 27, 2017 5:32 pm
Hi,
how do I add a (dis-)charge animation to electric-energy-interface entity types similar to the accumulator?
My goal is not to add a whole animation, but to simply change the sprite when the electric energy interface is outputting power to the network.
This is the base pic definition:
And this is what I've tried to get some "animation":
and
how do I add a (dis-)charge animation to electric-energy-interface entity types similar to the accumulator?
My goal is not to add a whole animation, but to simply change the sprite when the electric energy interface is outputting power to the network.
This is the base pic definition:
Code: Select all
picture =
{
filename = "__biter_spire__/graphics/biter_spire_neutral.png",
priority = "extra-high",
width = 128,
height = 128,
shift = {1, -1}
},
Code: Select all
animation =
{
filename = "__biter_spire__/graphics/biter_spire_unload.png",
width = 128,
height = 128,
shift = {1, -1},
line_length = 1,
frame_count = 1,
animation_speed = 1,
},
Code: Select all
charge_animation =
{
filename = "__biter_spire__/graphics/biter_spire_unload.png",
width = 128,
height = 128,
shift = {1, -1},
line_length = 1,
frame_count = 1,
animation_speed = 1,
},