Tiles collison
Posted: Mon Feb 26, 2018 9:22 pm
Hi all!
By a lot of tiles you can find collision_mask, for example by water tile is:
By fast all ground tiles the collision looks like:
Another place - items, that can be placed as tiles. For example, the concrete has this property:
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?
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"
}
Code: Select all
collision_mask = {"ground-tile"}
Code: Select all
place_as_tile =
{
result = "concrete",
condition_size = 1,
condition = { "water-tile" }
}
How to make that so, that you can't replace one tile with another?