-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Camera2D changing map limits results in smooth scrolling although limit_smoothed is false #63330
Comments
cc @madmiraal |
@IceTyp please provide an MRP, because this is definitely not what I see. If I set the limits in
|
After investigating, I found out that moving the camera in Here is a project where I reproduced the issue: scroll_issue.zip In this project, In In In The mentioned issue depends on the camera position before changing the limits. In certain cases, there is no scroll. However, in the next case, I could produce a delayed scroll: In |
Thanks for the MRP. Scenario 1 is the correct behaviour. The camera position is changed with Scenario 2 is incorrect behaviour. It should behave the same as Scenario 1. The only difference is that position is changed first instead of last. This is a bug. The order in which these properties are changed should not affect the behaviour. Scenario 3 is also a bug. Setting the camera position twice should invalidate the first setting. So, the behaviour should be the same as if setting the camera the first time hadn't happened i.e the same as Scenario 2, which in turn should be behaving the same as Scenario 1 of course. Scenario 3 also highlights two other bugs:
|
I've created #63572 to capture these issues separately as they preexist in 3.4.4 and are not specific to 3.5 RC7. |
Godot version
3.5 RC7
System information
Ubuntu 22.04
Issue description
Just tried Godot 3.5 RC7.
In a game I'm working on, the camera limits are set to the tilemap limits in
_ready
.Now, whenever I change scenes to such a map, I see an immediate scroll at the beginning although
limit_smoothed
is false.This was not the case in RC6.
Note that I would have a similar "immediate scroll" in RC6 if I set
limit_smoothed
to true.I am pretty sure that this is because of this commit. The problem should be fixed if
_update_scroll
is only called whenlimit_smoothed
is true. Otherwise,update
should be called.Steps to reproduce
Set up
Camera2D
withlimit_smoothed
false and change map limits such that the camera position is updating. You will observe a smooth scroll.Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: