Skip to content
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

MoveScroll( ... ) does not support jumping long distances #42

Open
mhughson opened this issue Dec 17, 2021 · 1 comment
Open

MoveScroll( ... ) does not support jumping long distances #42

mhughson opened this issue Dec 17, 2021 · 1 comment

Comments

@mhughson
Copy link

If you use MoveScroll to jump more than 1 tile at a time, it will not load in tiles for the rows you skip over.

For example, this is the result of scrolling by 16 pixels at a time:

image

The functionality is required for maps the don't start in the top left hand corner of the map.

@mhughson mhughson changed the title MoveScroll( ... ) does not support jumping large amounts MoveScroll( ... ) does not support jumping long distances Dec 17, 2021
@bbbbbr
Copy link
Contributor

bbbbbr commented Mar 29, 2024

I made a scroll to and force redraw function when using the ~2018 version of ZGB, the general idea probably still applies. There may be more efficient ways to do it and it might need some adjustment for modern zgb, not sure.
https://github.com/bbbbbr/plutoscorner/blob/7e362c33bc80b0de24cbb547a05325f4bfa01040/src/zgb_utils.c#L45C1-L64C1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants