Topic was automatically imported from the old Question2Answer platform.
Asked By
Genji
Old Version
Published before Godot 3 was released.
I feel stupid for encountering this problem, but it appears that setting a Camera2D as the current camera effectively ignores the Transform Scaling of ParallaxLayers in a ParallaxBackground, while Motion Scaling works fine. What do I need to do to enable Transform Scaling without scaling the layers’ children manually (or with gdscript)?
The Node hierarchy I am using generally looks like this (moving the camera in different positions in the hierarchy does not fix the issue):
After receiving some help, I was shown a simple work-around to accomplish the scaling I wanted.
Add a child Control node, or any node that can be scaled, to a ParallaxLayer you would like to have scaled children, and add the Sprites (or other visual elements) to that Control node: