Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Diet Estus |
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?
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.
Ertain | 2018-09-07 17:52