|
-
Sep 26th, 2000, 03:53 AM
#1
Thread Starter
New Member
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
-
Sep 26th, 2000, 04:05 AM
#2
transcendental analytic
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.
-
Sep 26th, 2000, 04:16 AM
#3
Thread Starter
New Member
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
-
Sep 26th, 2000, 04:38 AM
#4
transcendental analytic
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.
-
Sep 26th, 2000, 03:56 PM
#5
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
-
Sep 26th, 2000, 07:39 PM
#6
Frenzied Member
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
-
Sep 27th, 2000, 04:12 AM
#7
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|