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.
Printable View
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.
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.
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??
With constant velocity`?
Should be easy
image1.left=image1.left+3
You could repeat this in a loop or a timer
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
is it just me or what? I dont see puff0rz posts, I see:Quote:
Originally posted by msgbox
thanx puff0rz
msgbox
Matthew Gates
and
Kedaman
no puff0rz?????????????????
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:)