Page 1 of 1

Electric Energy Interface Animations

Posted: Thu Apr 27, 2017 5:32 pm
by Pandemoneus
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:

Code: Select all

    picture =
    {
      filename = "__biter_spire__/graphics/biter_spire_neutral.png",
      priority = "extra-high",
      width = 128,
      height = 128,
      shift = {1, -1}
    },
And this is what I've tried to get some "animation":

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,
    },
and

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,
    },

Re: Electric Energy Interface Animations

Posted: Fri May 05, 2017 12:25 am
by Pandemoneus
So I guess nobody knows?