0 votes

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.
enter image description here

enter image description here

Godot version Godot Engine v3.2.1.stable.official
in Engine by (60 points)

1 Answer

+1 vote

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
by (7,044 points)

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.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.