Horizontal Cell Scroll + Vertical Plane Scroll
Posted: Mon Dec 02, 2019 9:43 am
I come from this topic but i do not know very well how it works and if the same applies to horizontal scroll:
viewtopic.php?f=22&t=737
In short: i have a cell (tile) scroll for a 36 tile height background. When vertical scroll is 0, then the background horizontally scrolls from tile line 0 to 27 as you can expect... but if you move down the vertical scroll for example 3 pixels, then the cell line 0 (probably it is now the cell -1) is shown partially only 5 pixels, and a new 28 line (probably the new 27) is partially shown with 3 pixel.
My question is how do you scroll 29 lines when the cell scroll only lets you scrolling 28. In the above topic the leftmost column seems to scroll with the same offset of the rightmost column, but i do not fully understand how to make it work, or if the horizontal scroll works the same as the vertical one "looping" the offset from bottommost line to the upmost.
Thanks.
viewtopic.php?f=22&t=737
In short: i have a cell (tile) scroll for a 36 tile height background. When vertical scroll is 0, then the background horizontally scrolls from tile line 0 to 27 as you can expect... but if you move down the vertical scroll for example 3 pixels, then the cell line 0 (probably it is now the cell -1) is shown partially only 5 pixels, and a new 28 line (probably the new 27) is partially shown with 3 pixel.
My question is how do you scroll 29 lines when the cell scroll only lets you scrolling 28. In the above topic the leftmost column seems to scroll with the same offset of the rightmost column, but i do not fully understand how to make it work, or if the horizontal scroll works the same as the vertical one "looping" the offset from bottommost line to the upmost.
Thanks.