Results 1 to 7 of 7

Thread: SMOOTH animation???

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Location
    germany
    Posts
    10

    Unhappy

    how can one make a smooth animation unlike those timer-setted hopping and blinking?
    my problem is to make a image bounce SMOOTH over the form, best would be without any use of dX or such.
    thank you.
    der nico kann nich lesen und schreiben

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Now there are several ways to plot your animation (what kind?) You could use a picturebox control, you could blit it on the form, you could use the form drawing methods, the shape and line controls...
    And to make it move smooth, you have to set up velocity vectors and coordinates, preferably an UDT handling them, maybe acceleration, that's how smooth you want it to be.
    Hopping and blinking is probably caused while redrawing, you could set autoredraw to the form if you're drawing on it.
    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.

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Location
    germany
    Posts
    10

    Post Thanks, but how do i do that?

    thank you, but how can i do that?
    what does it take to scroll a simple imagebox from left to right in a smooth way??
    der nico kann nich lesen und schreiben

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    With constant velocity`?
    Should be easy
    image1.left=image1.left+3
    You could repeat this in a loop or a timer
    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.

  5. #5
    Guest
    Here is a pretty smooth animation method:

    Code:
    Private Declare Sub Sleep Lib "kernel32" _
    (ByVal dwMilliseconds As Long)
    
    Private Sub Command1_Click()
    'Adjust to fit your needs
        Do Until Image1.Left = 6120
            Image1.Left = Image1.Left + 5
            Sleep 1
        Loop
    End Sub

  6. #6
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715

    Re: thanx puff0rz

    Originally posted by msgbox
    thanx puff0rz
    is it just me or what? I dont see puff0rz posts, I see:
    msgbox
    Matthew Gates
    and
    Kedaman


    no puff0rz?????????????????
    NXSupport - Your one-stop source for computer help

  7. #7

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Location
    germany
    Posts
    10

    dumbo ...

    mr gates is who i mean by puff0rz coz of his email.
    maybe you should downgrade your desktop resolution to 640x480 or below so you can read what is there in small
    der nico kann nich lesen und schreiben

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