+1 vote

I recently added a Camera2D to my scene, set it as Current, and now the launched app freezes at the Godot spash screen (the window doesn't respond so I have to kill it with the Stop button).

Going through removal of all nodes until the freeze disappears, here is what I got:

  • Root (Node)
    -- ParallaxBackground
    ---- ParallaxLayer
    -- Camera2D

And I noticed that ParallaxLayer.Mirroring was set to (0,-512).
I reset it to (0,0) and now the scene plays correctly.
It seems I can set positive values but once X or Y is negative, the freeze re-happens.

The GUI allowed me to set -1, but it confuses the engine, so is this a bug?

in Engine by (27,166 points)

1 Answer

0 votes

The mirroring allows to have the image repeated over and over again in a side scroller for instance. If you're image is 512 width, the mirroring set at (0,-512) will repeat the image every to 512 pixels, which is convenient when sidescrolling instead of replicating the same sprite over and over again.

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

Categories