stack twitter tryhackme rss linkedin cross

Wilco van Esch

Skip to main content

Search results

    This article is human-generated. Sometimes I use em dashes. Sometimes I even write coherent sentences. Everything about this text, good and bad, is me.

    Add a second occlusion area in a tileset tile in Godot

    Tested with Godot 4.2.1.

    In a collision layer, you can paint a second collision area with the 'Add polygon tool'. However, in an occlusion layer adding a second collision area removes the first one.

    To work around this, you can add a second occlusion layer:

    1. In TileSet -> Paint, paint the first occlusion area on the tile on Occlusion Layer 0
    2. Save the changes to the scene
    3. Under the TileMap node's properties, open the Tile Set properties
    4. Under Rendering, click Add Element
    5. In TileSet -> Paint, paint the second occlusion area on the tile on Occlusion Layer 1
    6. Save the changes to the scene