Mod plane graphics

Place to get help with not working mods / modding interface.
Vulcan
Long Handed Inserter
Long Handed Inserter
Posts: 52
Joined: Sat Aug 02, 2014 12:34 pm
Contact:

Mod plane graphics

Post by Vulcan »

I have made a Spitfire plane as a mod, but the entity rotates twice as fast as its image, like this -
plane-graphics.gif
plane-graphics.gif (615.79 KiB) Viewed 1287 times
The sheet looks like this -
spitfire-sheet.gif
spitfire-sheet.gif (261.65 KiB) Viewed 1287 times
The code is as follows -

Code: Select all

{
      type = "car",
      name = "spitfire",
      icon = "__Advanced Chemistry__/graphics/icons/spitfire.png",
      flags = {"pushable", "placeable-neutral", "player-creation"},
      minable = {mining_time = 1, result = "spitfire"},
      max_health = 800,
      corpse = "medium-remnants",
      selection_box = {{-0.7, -1.2}, {0.7, 1.2}},
      acceleration_per_energy = 0.05,
      breaking_speed = 0.04,
      burner = 
        {
          effectivity = 0.25,
          emissions = 20,
          fuel_inventory_size = 2,
        },
      consumption = "1J",
      friction = 0.01,
      pictures = {
        filename = "__Advanced Chemistry__/graphics/entity/aviation/spitfire-sheet.png",
        priority = "high",
        frame_width = 180,
		line_length = 9,
        frame_height = 180,
		axially_symmetrical = false,
        direction_count = 81
      },
      rotation_speed = 0.005,
      weight = 50,
      inventory_size = 20
  }
The sheet only goes round 180 degrees as this was the way the plane was in freeER's tutorial and it a lot less effort than making it go round the full 360
Could someone please explain this odd behaviour?
JamesOFarrell
Filter Inserter
Filter Inserter
Posts: 402
Joined: Fri May 23, 2014 8:54 am
Contact:

Re: Mod plane graphics

Post by JamesOFarrell »

Code: Select all

axially_symmetrical = false
I'm pretty sure this should be true as you are only supplying half the rotation in your sprites. This is just a guess though
Post Reply

Return to “Modding help”