Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Masking char row for vertical scroll
2008-06-25 11:11
Partz
Account closed

Registered: Jun 2008
Posts: 17
Masking char row for vertical scroll

Assuming I want to smooth scroll only part of the screen vertically in an updward direction (say the first 10 char rows) and keep the rest constant, what techniques are available to mask the new characters which need to appear at row 10?. I know that its possible to set an invalid graphics mode which will prevent the characters from being 'seen' as they are plotted but when i've attempted to use this the mask area always appears in black - i've seen some very old games smooth scroll in this direction without having a black mask area so how was this achieved?
2008-06-25 11:34
TNT
Account closed

Registered: Oct 2004
Posts: 189
Blank font + $d018 change.
2008-06-25 13:03
T.M.R
Account closed

Registered: Dec 2001
Posts: 749
Switch on bitmap mode to a blank area?
2008-06-25 13:20
Graham
Account closed

Registered: Dec 2002
Posts: 990
Sprites.
2008-06-25 13:48
Mace

Registered: May 2002
Posts: 1799
Either what TNT said, or Graham's method.

Another trick is to slowly fade in the last line by changing the colours.
This doesn't result in the effect you describe, but it DOES solve the problem of suddenly appearing chars :)
2008-06-25 13:50
Cruzer

Registered: Dec 2001
Posts: 1048
lda #$7b
sta $d011
2008-06-25 17:38
Graham
Account closed

Registered: Dec 2002
Posts: 990
@Cruzer:

"i've seen some very old games smooth scroll in this direction WITHOUT having a black mask area so how was this achieved?"
2008-06-25 19:02
Partz
Account closed

Registered: Jun 2008
Posts: 17
Thanks for all the replies guys. I did think of sprites but didn't know if that was too clumsy - The blank font seems like a nice solution. I guess there are a number of ways of doing this - I just didnt want to go down the path of implementing something when there might have been a well known tried and tested way that everyone else did it.
2008-06-25 20:04
TNT
Account closed

Registered: Oct 2004
Posts: 189
$d018 can clip your sprites too if needed - swap screen as well as font and point sprites to blank ones :)
2008-06-25 22:01
Cruzer

Registered: Dec 2001
Posts: 1048
@Graham: Oh.. Another proof that I'm a total ignorant. :)
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Mike
psych
iAN CooG/HVSC
Guests online: 123
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Memento Mori  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Wafer Demo  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Nostalgia  (9.3)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top NTSC-Fixers
1 Pudwerx  (10)
2 Booze  (9.7)
3 Stormbringer  (9.7)
4 Fungus  (9.6)
5 Grim Reaper  (9.3)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.035 sec.