I would like to have a different color for my custom car, however I can't manage to make it different in color than the vanilla car.
I made a copy of all the sprites and placed them in my graphics mod directory after editing the color pallet, I also copied the entire animation from the vanilla car with animation files pointed at my adjusted car graphic files and placed them in my mod lua for the custom car entity. However the game keeps the vanilla graphics from the base game dir. I have checked and if I replace the base game files all cars change color. But I would like to differentiate the custom car. I read that the lowest y coord takes the highest layer but how would I implement that?
Code: Select all
animation =
{
layers =
{
{
width = 102,
height = 86,
frame_count = 2,
direction_count = 64,
shift = {0, -0.1875},
animation_speed = 8,
max_advance = 0.2,
stripes =
{
{
filename = "__custom car__/graphics/car/car-1.png",
width_in_frames = 2,
height_in_frames = 22,
},
{
filename = "__customcar__/graphics/car/car-2.png",
width_in_frames = 2,
etc etc