fabio
PooP MonkeeH
Posts: 6
|
Post by fabio on May 21, 2020 5:22:17 GMT -5
I couldn't figure out why doing such a simple thing as scrolling cells wasn't working. After digging and doing some tests, i found something odd. Using the mega example :
Moving the first 3 rows should result in a code like this :
But to achieve the same effect in SecondBasic, the y value has to be multiplied by 8.
Odd, since it's the code you would expect with HSCROLL_LINE enabled, not HSCROLL_CELL. Or am i missing something ?
|
|
|
Post by Oruam on May 21, 2020 7:23:14 GMT -5
I suspect that in BEX the scroll and scroll2 are the same, but I remember something that Adam told about he fixed it for SB, so you must use scroll2 inside for next.
In 60hz horizontally the screen has 224 pixels, and cells are groups of 8 pixels lines, so you get 28 total cells of lines
Try use it in Second Basic:
start:
setscrollmode scroll_cell,overall
Do
for y=0 to 27 scrollplane_A: SCROLL2,left,1,y next
Loop
return
(sorry if I wrote something wrong, I am on my cellphone)
|
|
jovial
Moldy Popcorn
Posts: 36
|
Post by jovial on May 21, 2020 8:15:30 GMT -5
If you have any bug reports for SecondBASIC, you can join the discord: discord.gg/mysG3Q7A new version is currently being worked on, so this kind of info might be helpful
|
|
fabio
PooP MonkeeH
Posts: 6
|
Post by fabio on May 21, 2020 8:32:34 GMT -5
Thanks a lot OruamWorking like a charm
|
|
fabio
PooP MonkeeH
Posts: 6
|
Post by fabio on May 21, 2020 8:35:04 GMT -5
jovialNice. Didn't know there was a Discord Channel. Gonna join the party then.
|
|