A parallax layering question.

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

Down below I have this mock-up this is how I would like the scene to look.

I have this TileMap (Orange) with a player in front, then I have the mid-ground trees (Blue) in a parallax without any actual parallaxing, then there are the background trees (green).

I want the mid-ground trees to be in front of TileMap, but then if I do that the character gets hidden by the trees, because parallax layers are either fully in front or fully behind, any way to get around this?

Im putting the mid-ground trees in a parallax layer so I can have the duplicating effect.

:bust_in_silhouette: Reply From: exuin

So what you want is to have the mid-ground trees in front of the tilemap but behind the player? How about a layout like this?

- ParallaxBackground
    - ParallaxLayer
        - BackgroundTrees
- TileMap
    - ParallaxBackground
        - ParallaxLayer
            - MidgroundTrees
    - Player

Yes, putting the midground trees as a child of the TileMap might work, I´m currently traveling so I´ll try this when I get home.

Chevi | 2021-06-08 15:56