Shift for shadow has another scale than shift for entity image
Posted: Thu Jul 25, 2019 10:30 am
See mods: https://mods.factorio.com/mod/BigChests https://mods.factorio.com/mod/NuclearScale https://mods.factorio.com/mod/SchallMachineScaling
Where layer 1 - image, layer 2 - shadow.
Code: Select all
entity.picture.layers[1].scale = scale
entity.picture.layers[1].hr_version.scale = 0.5 * scale
entity.picture.layers[2].scale = scale
entity.picture.layers[2].hr_version.scale = 0.5 * scale
entity.picture.layers[2].shift[1] = 1.625 * scale
entity.picture.layers[2].hr_version.shift[1] = 1.625 * scale