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
Peacemaker/CENSOR/Hi..
MWR/Visdom
Acidchild/Padua
Alakran_64
bexxx
Slajerek/Samar
Andy/AEG
E$G/HF ⭐ 7
lotus_skylight
iceout/Avatar/HF
Naufr4g0
Guests online: 113
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Triad  (9.3)
Top Original Suppliers
1 Derbyshire Ram  (9.7)
2 Fungus  (9.3)
3 Black Beard  (9.2)
4 Baracuda  (9.2)
5 hedning  (9.1)

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