At 11:11 AM -0500 1/4/01, Slava Paperno wrote:
>Thanks, Ramesh, but that's exactly what I'm doing: scrollByLine, and 
>that's what I'm trying to avoid. Like I said, scrolling by line at a 
>time is too jerky, when the font is large. That's why I was looking 
>for a way to scroll a few _pixels_ at a time.
>
>Thanks for writing anyway. It's good to know people are willing to 
>help. If you know of a way to scroll smoothly, please drop me a line.
>

You can scroll by pixels, but involved some tricky artwork.  If you 
can do it, put your text in one channel, and in the next higher two 
channels, put some masking art that will match your background. 
Something like this:

    ----------------------
   |             rect                   |
    ----------------------
    Your text member here
    Your text member here
    Your text member here
    Your text member here
    Your text member here
    ----------------------
   |             rect                   |
    ----------------------

Then when you want to scroll the text, just change the locV of the 
text sprite up or down.  The text will appear to scroll, but it 
actually is just moving behind the rectangles above and below.  You 
have to put in some code to ensure that the scrolling stops when you 
get to the top and bottom of your text.

Good luck,

Irv
-- 
Lingo / Director / Shockwave development for all occasions.

        (Over two millions lines of Lingo code served!)

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to