Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | timoschwarzer | |
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