4.4
DUDE. I am going through simple parallax tutorials online and looking at documentation and it seems like the latest version of Godot they have made parallax sprites insanely complicated.
I watch a 4.3 tutorial where the guy simple added a Parallax2D node and a child sprite and boom it was working in the scene.
I do it and the sprite does not appear whatsoever.
Then I read you need a CanvasLayer, try that, still nothing. It’s in the editor just not in the game.
So there is
Parallax2D
ParallaxLayer
ParallaxBackground
why are there so many different Parallax nodes? why is this so difficult?
1 Like
Have you tried the official documentation? It seems pretty helpful 2D Parallax — Godot Engine (stable) documentation in English
Parallax2D
is a new node that is meant as a replacement for ParallaxLayer
and ParallaxBackground
, more details as to why Parallax2D Progress Report – Godot Engine
1 Like
ParallaxBackground
and ParallaxLayer
has always had a lot of limitations and issues, so Parallax2D
was created to replace them. It was added in 4.3 as experimental. We removed the experimental flag in 4.4, and ParallaxBackground
and ParallaxLayer
is marked as deprecated in the upcoming 4.5 release.
Parallax2D
should handle most cases and the documentation @gentlemanhal linked goes over common mistakes users make when setting it up. It also explains how it works under the hood so you have a better understanding.
I went through documentation, it seemed like an overflow of information. I was able to achieve the result I wanted using ParallaxBackground > ParallaxLayer > Sprite2D
when I used Parallax2D I couldn’t for the life of me get the sprite to appear in the scene , despite seeing it in the editor
If you’re comfortable with sticking with an older version and it’s working fine for you, there’s no need to upgrade. ParallaxBackground
and ParallaxLayer
won’t be removed any time soon, they’re just deprecated so it’ll have a little red x next to it when using them, since they’re obsolete.
If you’re feeling overwhelmed by the documentation, just take it one step at a time. Parallax is a complicated effect in general, and Godot’s implementation is here to avoid you needing to worry about too much of the finer details. There are distinct sections to walk you through and explain any specific issues you may be having, so explore a little bit at a time. For the most part, it shouldn’t be difficult to set up unless you have a very complex custom situation.
In fact, if ParallaxBackground
is already working, you can just click the ParallaxBackground
button at the top of your screen when the node is selected and it’ll auto-convert it for you with no change to the behavior.
If you’re having any specific issues and don’t want to read the documentation, I can help explain and help fix any missteps you might have made. Do you have any screenshots of your scene or settings?