1. Home
  2. Docs
  3. LEd documentation
  4. Tutorials
  5. Working with Auto-Layers

Working with Auto-Layers

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” :

  1. in any given cell, there is a “collision” IntGrid value (white)
  2. AND there is nocollision” 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: