Auto-layers are actually IntGrid layers with a twist: they have a Tileset linked to them and rules to paint tiles automatically.
Step 1 – Create a Tileset
You can use the free tileset Cavernas from Adam Saltsman for your tests.
Step 2 – Create an IntGrid layer
Step 3 – Add some rules
How rules work?
Rules are grid patterns that will decide if a specific tile should be painted on your layer.
Here is a simple rule:
It says “Paint the tile on the left if” :
- in any given cell, there is a “collision” IntGrid value (white)
- AND there is no “collision” value above.
And here is another one:
This second one means: “Paint the tile on the left if any given grid cell contains a “collision” value“.
With these 2 rules, if you add collisions to your layer, the tiles will be drawn automatically:
If you press R or uncheck the Render option in the Rules panel, you will see the “pure” IntGrid layer, without the tiles: