+1 vote

I have a ParallaxBackground that has different ParallaxLayers with different motion_scales.

I want to rotate them all by the same amount (and also rotate my viewport's canvas transform by this amount).

But if I rotate the entire ParallaxBackground by this amount, the layers rotate according to their individual motion scales

If I rotate the ParallaxLayers individually by this amount, they also rotate according to their individual motion scales.

And, of course, rotating my main viewport's canvas transform doesn't affect them at all.

So, how can I rotate all my parallax layers by the same amount, while still allowing them to have different motion_scales?

in Engine by (1,547 points)

Maybe you could have multipliers for each background which accounts for the differences in the scaling factors? Or maybe each ParallaxBackground could be based upon a percentage of a single Vector2? I'd offer more aid, but I know very little about parallax backgrounds.

1 Answer

0 votes

There is no way that I know of to cleanly deal with godot's built in parallax layers and rotating cameras. See my response to your other question about this for more info :)

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