Equipment image layer shift issue
Posted: Mon Oct 05, 2020 7:20 pm
How can I shift my equipment mask?
Since I specify "no-crop" I expected that shift would be not required, but I did notice in the in-game protoype explorer gui (ctrl+shift+F), that the base image sprite does pick up a {0.0625, 0.125} shift from somewhere. So I added a shift to the mask sprite definition to no visible effect (even at {0.5, 0.5}).
The other oddity in the prototype explorer for the mask sprite was that the "flags" showed only "no-crop" but not "mask" (that being said I've no idea what "mask" is supposed to actually do!).
The mask image is 128 x 128 like the base image...
Code: Select all
sprite = {
layers = {
{filename = "__base__/graphics/equipment/fusion-reactor-equipment.png", height = 128, priority = "medium", width = 128},
{
filename = "__TestMod__/graphics/fusion-reactor-equipment-mask.png",
flags = {"no-crop", "mask"},
height = 128,
priority = "medium",
tint = {a = 0.5, b = 0.1, g = 0.1, r = 0.9},
width = 128
}
}
}
The other oddity in the prototype explorer for the mask sprite was that the "flags" showed only "no-crop" but not "mask" (that being said I've no idea what "mask" is supposed to actually do!).