+1 vote

I'm using a ParallaxBackground with a few ParallaxLayers using Sprites with repeat flags enabled. When I change a scene and come back, all the ParallaxLayers are moved to the topleft corner of the game window. Why is this happening?

Godot version 3.4.4
in Engine by (28 points)

1 Answer

0 votes

When your whole sprite size is smaller than your viewport size parallaxBackground doesn't work properly.
To solve this in the sprites, in the region category, enable it and set the width and height to a multiple of your sprite texture size that is bigger than your screen. If it still glitches follow the guidelines in the link below.


by (113 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.