# Brush with tiles on different layers

**URL:** <https://discourse.mapeditor.org/t/brush-with-tiles-on-different-layers/3054>\
**Category:** Questions\
**Created:** [March 8, 2018, 2:59am UTC](https://discourse.mapeditor.org/t/brush-with-tiles-on-different-layers/3054 "2018-03-08T02:59:03Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karl\_Salameh](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/karl_salameh/32/1641_2.png) [@Karl\_Salameh](https://discourse.mapeditor.org/u/Karl_Salameh)\
**Post date:** [March 8, 2018, 2:59am UTC](https://discourse.mapeditor.org/t/brush-with-tiles-on-different-layers/3054/1 "2018-03-08T02:59:03Z")

</div>

Hey, is it possible to create a sort of brush that will place one tile on a layer, and another tile on another layer? (Tree trunk + tree leaves)

---

<div class="post-metadata">

**Author:** ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)\
**Post date:** [March 9, 2018, 9:27pm UTC](https://discourse.mapeditor.org/t/brush-with-tiles-on-different-layers/3054/2 "2018-03-09T21:27:29Z")

</div>

Yes, if you install the latest development snapshot, which includes this feature:

> **[Multi-Layer Editing and Other Stuff - Tiled Map Editor by Thorbjørn](https://thorbjorn.itch.io/tiled/devlog/24167/multi-layer-editing-and-other-stuff)**
>
> Multi-Layer Editing This is a big update since the development branch for multi-layer editing has been merged. This means now you can select more than one layer (using Ctrl or Shift modifiers in the L

You can find it on [https://thorbjorn.itch.io/tiled](https://thorbjorn.itch.io/tiled) listed as “snapshot”.

---

<div class="post-metadata">

**Author:** ![Karl\_Salameh](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/karl_salameh/32/1641_2.png) [@Karl\_Salameh](https://discourse.mapeditor.org/u/Karl_Salameh)\
**Post date:** [March 14, 2018, 12:09am UTC](https://discourse.mapeditor.org/t/brush-with-tiles-on-different-layers/3054/3 "2018-03-14T00:09:53Z")

</div>

Big thank you! It works great. A few bugs with the cursor but otherwise it’s super useful, thanks. 🙂

---

<div class="post-metadata">

**Author:** ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)\
**Post date:** [March 14, 2018, 11:05am UTC](https://discourse.mapeditor.org/t/brush-with-tiles-on-different-layers/3054/4 "2018-03-14T11:05:51Z")

</div>

> [@Karl\_Salameh](#):
>
> Big thank you! It works great. A few bugs with the cursor but otherwise it’s super useful, thanks. 🙂

That’s great to hear! But please elaborate on the bugs with the cursor that you noticed.

---

<div class="post-metadata">

**Author:** ![Karl\_Salameh](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/karl_salameh/32/1641_2.png) [@Karl\_Salameh](https://discourse.mapeditor.org/u/Karl_Salameh)\
**Post date:** [March 14, 2018, 1:02pm UTC](https://discourse.mapeditor.org/t/brush-with-tiles-on-different-layers/3054/5 "2018-03-14T13:02:45Z")

</div>

Hi bjorn,

Simply, often times the mouse cursor is the hand grabbing instead of the arrow pointer or whatever it should be. Only a visual glitch though.

---

<div class="post-metadata">

**Author:** ![Ron1987](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/ron1987/32/1650_2.png) [@Ron1987](https://discourse.mapeditor.org/u/Ron1987)\
**Post date:** [March 14, 2018, 3:42pm UTC](https://discourse.mapeditor.org/t/brush-with-tiles-on-different-layers/3054/6 "2018-03-14T15:42:31Z")

</div>

One thing I’ve noticed about using brushes on multiple tile layers is if one layer is hidden, the entire brush doesn’t show up. I have trees, where the base of the tree is in one layer, the top of the tree is in another and the collision (just on the base) is in a 3rd layer. Everything works if the collision layer is visible, but I often work with the collision layer hidden and when it is, I can’t stamp (or see) the entire brush if it effects the hidden layer.

It would be OK (for me) if I just didn’t see the part of the brush going to the hidden layer.

---

<div class="post-metadata">

**Author:** ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)\
**Post date:** [May 31, 2018, 3:41pm UTC](https://discourse.mapeditor.org/t/brush-with-tiles-on-different-layers/3054/7 "2018-05-31T15:41:07Z")

</div>

> [@Ron1987](#):
>
> Everything works if the collision layer is visible, but I often work with the collision layer hidden and when it is, I can’t stamp (or see) the entire brush if it effects the hidden layer.

Hmm, in fact, the behavior currently is such that when the _current layer_ is hidden, the brush is hidden as well and you can’t paint. This behavior is in place because in the past, using the brush on a hidden layer would appear to not do anything, so accidental clicks went unnoticed until it was too late to undo them.

So, you can have your collision layer hidden, as long as it is not your currently selected layer the multi-layer brush will work as you want (except, it won’t hide the parts that go to hidden layers, but I’m not sure that would be desired anyway).

I could imagine to change this behavior, so that the brush works whenever at least one of its target layers is not invisible, though that will be a little involved. Do you think that would be intuitive?

---

<div class="post-metadata">

**Author:** ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)\
**Post date:** [May 31, 2018, 3:56pm UTC](https://discourse.mapeditor.org/t/brush-with-tiles-on-different-layers/3054/8 "2018-05-31T15:56:25Z")

</div>

> [@bjorn](#):
>
> I could imagine to change this behavior, so that the brush works whenever at least one of its target layers is not invisible, though that will be a little involved. Do you think that would be intuitive?

Hmm, I’ve tried to implement this for a bit, but then it occurred to me that the stamp could be randomly chosen from multiple variations, and each variation may have different target layers. So maybe I would need to take the union of all the targets layers of all the variations…

Ah, don’t you just love it when different features mix together to form a complicated mess of edge-cases! 🙂

---

<div class="post-metadata">

**Author:** ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)\
**Post date:** [June 5, 2018, 4:35pm UTC](https://discourse.mapeditor.org/t/brush-with-tiles-on-different-layers/3054/9 "2018-06-05T16:35:21Z")

</div>

@Ron1987 I’ve made the following change, let’s hope it improved the situation (will be in next development snapshot):

> <https://github.com/bjorn/tiled/commit/c87f8c4299e293256c08649914cd7a6d7f5b5477>
