Mod plane graphics
Posted: Thu Oct 30, 2014 10:07 pm
I have made a Spitfire plane as a mod, but the entity rotates twice as fast as its image, like this -
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?
The sheet looks like this -
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
}
Could someone please explain this odd behaviour?