Can I Flip Parallax Layers Horizontally?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By kapaqw

Whenever I mirror my background on a Parallax Layer node, it looks like this:

Obviously, its mirror won’t look nice. All I need to do to fix this is flip it horizontally, but there doesn’t seem to be a way to do this by messing with the Parallax Layer proprieties. Would I need to make a script to fix this or am I missing something?

:bust_in_silhouette: Reply From: exuin

“Mirroring” in a ParallaxLayer doesn’t actually mean that it’ll be flipped horizontaly. I guess it’s a wording issue. You’ll probably need to make a script to fix this.

Alternatively, you can use a TextureRect with the texture’s import settings as repeat → mirrored and Expand on and Stretch Mode Tile. You’ll need to set the TextureRect’s size since turning Expand on will cause it to disappear. But that’s combining Control nodes with Node2Ds which might cause issues later on.

exuin | 2021-03-13 18:14