+2 votes

Hello Godot-Community!

Is is possible to have the camera/viewport zooming like changing the resolution? (Scale the View twodimensionally)
I want this because using the Zoom property on Camera2D destroys the Parallax effect of the background layers.

Best regards,

in Engine by (703 points)

Are you sure you want to change the resolution, and not just fix Parallax somehow?
If you think this is a bug in Parallax open an issue: https://github.com/godotengine/godot/issues

It seems like a bug...
I'm currently fixing it with GDScript (I'm not familiar with C++). I'll open an issue when I'm done, so someone has to "translate" it to C++

This is my working parallax implementation, which works well with zooming the camera.
IDK if this can be implemented into the engine...

1 Answer

0 votes

You can scale whole scene x2 (sprites, background images, etc.) and it should give you the result that you want but it can make your game logic and physics unstable

by (440 points)

and how? I can't find anything... And can I animate this?

just scale every sprite by editing parameter of scale x2 or x4, it will make everything double size and quad size

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.