Page 1 of 1

Animating construction robots

Posted: Fri Jan 31, 2020 10:16 am
by Hamtato
Having trouble animating construction bots. I am trying to get the robots to have 2 frames per direction, but they are only displaying the first frame of each direction. They appear the same when frame_count = 1 or 2.

My sprite sheet has 2 frames per line, and 4 rows for directions. What am I doing wrong?

Code: Select all

    
    in_motion =
    {
      filename = "__CatMod__/graphics/entity/cat/hr-cat.png",
      priority = "high",
      line_length = 2,
      width = 112,
      height = 59,
      frame_count = 2,
      direction_count = 4,
      shift = {0, 0.015625},
      scale = 0.5
    },

Re: Animating construction robots

Posted: Fri Jan 31, 2020 6:18 pm
by Deadlock989
The flying bot entities don't support multiple animation frames per direction for normal motion, even though it's possible to specify them in the prototype. I reported it before, it was a "won't fix".

viewtopic.php?f=58&t=71940

Re: Animating construction robots

Posted: Mon Feb 03, 2020 12:18 am
by Hamtato
That’s unfortunate. Thanks for the reply.