Results 1 to 9 of 9

Thread: MAKE IT SMOOTHER!!!!!!!

  1. #1

    Thread Starter
    Hyperactive Member Sacofjoea's Avatar
    Join Date
    May 2000
    Location
    Never Never Land
    Posts
    472
    How can I make the text move smoother?

    Private Sub Timer1_Timer()
    If Text1.Top > -15240 Then
    Text1.Top = Text1.Top - 200
    Else
    Text1.Top = 4800
    End If

    End Sub

    The timer interval is set at 300...

    That arranged can be

  2. #2
    Guest
    What do you mean, Smoother?

  3. #3
    Lively Member
    Join Date
    Jun 2000
    Posts
    82
    Make the timer interval smaller, and the move steps smaller.
    Code:
    Private Sub Timer1_Timer() 
      If Text1.Top > -15240 Then 
        Text1.Top = Text1.Top - 100
      Else 
        Text1.Top = 4800 
      End If 
    End Sub
    Set the Timer1.Interval to 150
    Andrew Empson
    vb6(ent) SP4

  4. #4

    Thread Starter
    Hyperactive Member Sacofjoea's Avatar
    Join Date
    May 2000
    Location
    Never Never Land
    Posts
    472
    When it moves... it kind of skips... I want it to move smoother like ill use dots for a poor example

    Mine does this
    .. .. .. .. .. ..
    I want it to go smoother
    ......................

    I know that I would have to make it cover more frames (if you can call it that), cause its skipping certain frames... I think I confused you more...
    That arranged can be

  5. #5
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    1. YOu could set a lower interval(50) to the timer and smaller value for text1.top to decrease
    Code:
    Text1.Top = Text1.Top - 50
    2. You could use a loop instead
    Code:
    Do
       Doevents
       If Text1.Top > -15240 Then 
        Text1.Top = Text1.Top - 15 
       Else 
        Text1.Top = 4800 
       End if
    Loop until Youwanttoexitme
    Make sure you can exit your loop by putting a boolean variable or expression instead of Youwanttoexitme
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  6. #6

    Thread Starter
    Hyperactive Member Sacofjoea's Avatar
    Join Date
    May 2000
    Location
    Never Never Land
    Posts
    472
    Yeah , i just did that Kedaman, thanks everyone
    That arranged can be

  7. #7
    Guest
    Code:
    Do Until Text1.Top = 3000
    DoEvents
    Text1.Top = Text1.Top + 1
    Loop
    This code will make the textbox move down. A subtraction symbol (-) will make it go up.
    Set the top to anything.

  8. #8
    Guest
    Damn! A lot of people replied while I was testing the code out ;]. Oh well, any kind of code that is submitted and works is useful...whether it be the long way or the short way .

  9. #9

    Thread Starter
    Hyperactive Member Sacofjoea's Avatar
    Join Date
    May 2000
    Location
    Never Never Land
    Posts
    472
    Thanks anyways man!
    That arranged can be

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width