Page 1 of 1

Mod plane graphics

Posted: Thu Oct 30, 2014 10:07 pm
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 1359 times
The sheet looks like this -
spitfire-sheet.gif
spitfire-sheet.gif (261.65 KiB) Viewed 1359 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?

Re: Mod plane graphics

Posted: Thu Oct 30, 2014 11:51 pm
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