tiled icon indicating copy to clipboard operation
tiled copied to clipboard

Automapping where 1 tile in layer A and none in layer B

Open JackJohnJoe opened this issue 12 years ago • 5 comments

Hello I'm trying to get an automapping rule that applies when one specific tile is on a layer, let's say layer A, and none is on layer B, ie. it's empty, like after using the eraser. I tried using "input_layerA" for the first case, and "input_layerB" with nothing in it for the second, I thought it would make sense, but it seems it doesn't work. In fact it does the opposite : it applies the rule where any tile is present on layer B, but not where there is none. Am I understanding the principles incorrectly? Is it possible to do this? It feel weird that I'm able to get the inverse of what I want but not what I want. Making an "input_" layer for each possible tile in layer B would obviously not be ideal, and using a blank tile would require to fill all empty tiles in the final map with it manually.

JackJohnJoe avatar Aug 04 '14 14:08 JackJohnJoe

If you're using tiled 0.9 or 0.9.1 there are also inputnot_* layers.

So you could have a inputnot_layerB and place said tile.

stefanbeller avatar Aug 04 '14 17:08 stefanbeller

Am I understanding the principles incorrectly?

Have a look at https://github.com/bjorn/tiled/wiki/Automapping#definition_of_inputs

stefanbeller avatar Aug 04 '14 18:08 stefanbeller

@JackJohnJoe Did that solve your problem? If so I'd like to close this issue.

bjorn avatar Sep 12 '14 14:09 bjorn

Sorry I didn't follow this up. I remember it didn't solve the problem but I found another way. Go ahead and close so you can feel good.

Le Vendredi 12 septembre 2014 16h10, Thorbjørn Lindeijer [email protected] a écrit :

@JackJohnJoe Did that solve your problem? If so I'd like to close this issue. — Reply to this email directly or view it on GitHub.

JackJohnJoe avatar Sep 25 '14 14:09 JackJohnJoe

Go ahead and close so you can feel good.

Thanks @JackJohnJoe, that feels much better! ;-) Too bad it didn't solve your problem though...

bjorn avatar Sep 25 '14 20:09 bjorn