-
Notifications
You must be signed in to change notification settings - Fork 6
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
Sticky map edges #3
Comments
You can update the script to the following just after updating position based on movement in the
I'd make a PR but I don't have my |
Related to [Issue 3](carmel4a#3)
The real fix for this: You can update the script to the following just after updating position based on movement in the _physics_process(delta) function inside of RTS-Camera2D.gd:
For godot 4 at least. |
I have found that camera implementation does not check for limit values (limit_left, limit_right...) of Godot camera resulting in position being moved but view is stuck properly on the limits. This results in user essentially overscroll map and then having to scroll back while screen is still on limit position.
Proposal:
When camera reaches limit in one of the axes it should no longer set its position further behind these limits
The text was updated successfully, but these errors were encountered: