You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue description:
Two bugs I noticed that seem to be related.
When resizing the game window the Camera2D doesn't center itself, even though it's set to be centered. This only happens when smoothing_speed is the default value of 5, it doesn't matter if smoothing is on or off, it happens either way. But when smoothing_speed is set to any other value it will update correctly and stay centered, even if smoothing is off.
When smoothing is on, smoothing_speed is the default value of 5, and using the dragging script provided below, the camera smoothing only updates while the mouse is moving. But when the smoothing_speed is any other value the camera moves smoothly as expected.
Neither of these bugs happened in 3.1 Alpha 2. You can open the project in that version to test as well.
Had the same issue(Godot 3.1 alpha 4, Linux Mint 19) but it still happened for me, when I changed the smoothing_speed to 0. Though a smoothing_speed of 1 fixed it then.
It would be great if someone could bisect what caused the regression. Apparently it worked fine in 3.1 a2, so it should be bisected between aec8ea4 (good, but test to confirm) and e77afb8 (bad).
Seems to work fine both in 3.1-stable and the current master branch, so I guess it was fixed and we forgot to close this issue (or I now misunderstand what the bug should look like).
Godot version:
Godot 3.1 e77afb8
OS/device including version:
Windows 10 64bit
Issue description:
Two bugs I noticed that seem to be related.
smoothing_speed
is the default value of 5, it doesn't matter ifsmoothing
is on or off, it happens either way. But whensmoothing_speed
is set to any other value it will update correctly and stay centered, even ifsmoothing
is off.smoothing
is on,smoothing_speed
is the default value of 5, and using the dragging script provided below, the camera smoothing only updates while the mouse is moving. But when thesmoothing_speed
is any other value the camera moves smoothly as expected.Neither of these bugs happened in 3.1 Alpha 2. You can open the project in that version to test as well.
The camera dragging script:
Steps to reproduce:
smoothing_speed
value to anything other than 5 and try running it again. The bugs stop happening.Minimal reproduction project:
CameraBug3_1.zip
The text was updated successfully, but these errors were encountered: