Page 1 of 1

Tiles collison

Posted: Mon Feb 26, 2018 9:22 pm
by darkfrei
Hi all!

By a lot of tiles you can find collision_mask, for example by water tile is:

Code: Select all

    collision_mask =
    {
      "water-tile",
      "item-layer",
      "resource-layer",
      "player-layer",
      "doodad-layer"
    }
By fast all ground tiles the collision looks like:

Code: Select all

collision_mask = {"ground-tile"}
Another place - items, that can be placed as tiles. For example, the concrete has this property:

Code: Select all

    place_as_tile =
    {
      result = "concrete",
      condition_size = 1,
      condition = { "water-tile" }
    }
Here "condition" is for disabling possibility that you can place concrete tiles near water tiles.

How to make that so, that you can't replace one tile with another?