Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scrolling Code
#1
Yes, I'm creating my own scrolling code. Currently practicing with my object editor.

So I have a problem, yes it scrolls but the lazyness isn't working

Code:
Case Dir_Right
            If ViewX < TotalWidth Then
                TempV = ViewX + ScrollAmount
                Do Until ViewX = TempV
                    ViewX = ViewX + Lazyness
                Sleep 1
                DoEvents
                Loop
            End If

Lazyness is what's going to make it scroll lately smoothly kinda like a drag effect. But it just jumps to the scrollamount.

Any ideas why it doesn't loop? Like ViewX = + 1, ViewX = + 1, ViewX = + 1, ViewX = + 1
Reply
#2
Change Lazyness to 1?
Reply
#3
GIAKEN Wrote:Change Lazyness to 1?

It is 1.
Reply
#4
instead of looping, maybe break for the sub?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)