Draw some tiles above a particle systems

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By tproper

I have two tiles, a grass tile and a wall tile. I have a simple explosion made from a particle system. I’m wanting the explosion to show on grass tiles but not on wall tiles.

How can I do that?

I tried setting Z indexes but that seemed to alter collisions…Not sure what the Z indexes are.

Z indexes are just the order in which things are drawn on screen. They shouldn’t affect collisions. It should work if you place the grass tile on layer 0, the particle effect on layer 1, and the wall tile on layer 2 (assuming i understand your layout). Also note that z indexes are relative to their parent node.

Socrates | 2018-05-12 04:40