+1 vote
in Engine by (32 points)

1 Answer

+1 vote

The ParallaxBackground is only updated when a camera is moved. So it requires a camera for it to scroll.

What you can do is have a separate CanvasLayer node. Then all children of this CanvasLayer wont be affected by the camera's movement. You could then move or animate the camera however you want, the background will scroll, and everything you added to the CanvasLayer will stay on the screen as normal.

Here is an example:

example parallax background

by (668 points)
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.