[Rseding91] [0.17.50] Variant tile placement depends on direction of drag
Posted: Thu Jun 20, 2019 2:59 pm
I made a new placeable/minable floor tile, made out of 1x1 and 2x2 variants, defined like so:
Unfortunately, when you select the tile item and place it in the world and then drag along, you get radically different results depending on which direction you drag. If you run down or right, you get none of the 2x2 variants after the very first placement, only the 1x1 versions. But if you run up or left, you get all the variants including the 2x2s. See illustration attached, which used a 4x4 "brush".
Code: Select all
variants = {
main = {
{
count = 16,
picture = DIR.terrain_path .. "/" .. graphic .. "-1.png",
scale = 0.5,
size = 1,
},
{
count = 16,
picture = DIR.terrain_path .. "/" .. graphic .. "-2.png",
scale = 0.5,
size = 2,
probability = 0.5,
},
},
.....