Camera Zoom like a resolution change

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By timoschwarzer
:warning: Old Version Published before Godot 3 was released.

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,
TImo

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: Issues · godotengine/godot · GitHub

Bojidar Marinov | 2016-03-14 17:00

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++

timoschwarzer | 2016-03-14 17:54

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

timoschwarzer | 2016-03-14 20:21

:bust_in_silhouette: Reply From: KRL

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

and how? I can’t find anything… And can I animate this?

timoschwarzer | 2016-03-14 13:56

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

KRL | 2016-03-14 19:46