Trouble with parallex layer/ Middle backgrounds

Godot Version

`4.3 stable win_64

Question

`I want to create a parallax background using tiles and it isn’t working properly. I have the background (BG) tile layer 1st in order with z index of 0 and the parallax background, layer and tile layer 2nd in order with z index 1 and in the last is the foreground with z index 2 but the parallax layer is appearing behind the background. If i put BG inside parallax background the parallax layer appears but the BG gets messed up.



ParallaxBackground is a CanvasLayer, so it can either exist above or below your main canvas, not in-between. Try the new Parallax2D. It’s meant to fix these issues from the old system.

2 Likes

Thanks a lot! It works fine now.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.