Hi there. I have one small question. It was some time that I was programming in TB XL, and I have a question if it is possible to make a text scroller, something like can be seen in games from activision (Pitfall 2, Pastfinder) ? Any help will be welcomed. Thanks.
Hi, scrolling (something like these) was in polish newspaper "Bajtek" in series of articles "Nie bój się przerwań" ("Don't be afraid of interrupts", 1987, 1988 /?/). These yearbooks are in archive AtariOnline ("Biblioteczka").
Horizontal is a tad more difficult, but everything depends on the map you have - if it is small, it might be quite doable. Basically you can do it in TB, but the same way you would do it in assembler - just dpokes and moves. If you have no idea how to do it, start with De Re Atari (http://www.atariarchives.org/dere/chapt06.php#H6_1) to understand the concept.
if you unroll the line with text (which has to be kept somewhere anyway) then the scrolling is relatively simple: you change HSCROLL (poke) every time and additionally increase (dpoke) start address of line every 8 times. Just remember to keep it from 4kB boundary and no longer than 4kB (ex: $7000-$7fff)
Some glitches may appear, it would be good to wait for vblank before scroll manipulation.
The Scroll may be not so smooth as let you ml/interrupt inserts.
The true is that in ml you increase one counter, store it in HSCROLL, compare with "8" and then increase word in memory. It is not complicated at all and gives you smooth scrolling regardless what's happening on display.