0

Hi,

I want to make an object move from A to B in a fluid animation. I know how to make it's position change, but after that, i'm lost. I know I have to use a timer, but don't know exactly how. Can anyone help me ?

Thank you!

3
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by abelLazm
1

In win forms, you will have to specify the new position. The human eye recognize 25 pictures for second, so you will have to move the picture 25 times per second (per few inches every move).
In TimerTick event you have to execte the move. You can do your own method, which will be called from timerTick event. In this method you create some conditions, like when the object reaches XX,YY has to turn down, when object reaches XX,YY has to turn left, and so on... and on every step of the way you define a new location, which you then assign to the object (myObject.Location = new Point(XX, YY);).
Thats it.
Mitja

0

use two timers timer1 and timer2. Set intervals make timer1 enable but timer two disable. now in function timer1_tick move your object to point-1 and enable timer2 and disable timer1 now do it vise verse for point-2

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.