movement of object without using timer

Login to reply to this topic.
Tue, 2008-06-10 12:49
Joined: 2008-05-12
Forum posts: 16

hello everybody,

I am having a query regarding the movement of the square. Actually in my project i have to make movement of few geometrical figure for that purpose i have gone through the example of series 60 Animation project but in that animation and movement is done on timer.

My question is that suppose i have to show my rectangle moving from (x1,y1) to (x2,y2) the how should i proceed. I tried to do so by drawing the rectangle and checking the coordinates between given range and as per requirement I increased the coordinate i.e. x1+=5; y1+=3; but its displaying nothing on emulator can Anybody help me out of this.Reply ASAP.I need some good idea and sample
code.

Thanks in Advance
Amrish


Tue, 2008-06-10 13:14
Joined: 2004-11-29
Forum posts: 1197
Re: movement of object without using timer

Your question is very weird.

Why don't you want to use a timer?

If you want to do an animation, you have to re-draw it several times, moving the square a little bit each time. (how far depending on how fast you want it to move ofcourse)

For that, a timer is ideal to use.

Tue, 2008-06-10 16:34
Joined: 2007-09-23
Forum posts: 159
Re: movement of object without using timer

You need some sort of trigger. If you don't want to use a timer as a trigger than what trigger you do use is up to you - perhaps you could let some carrier pigeons free in one location and put some bird seed on a table in another location. The table is wired up so that when a pigeon lands on it an SMS is sent to your device, when the device receives the SMS the redraw occurs. It all depends if you want a sensible trigger or a ridiculous one. We don't know what sort of trigger you want.

Wed, 2008-06-11 07:48
Joined: 2005-04-13
Forum posts: 120
Re: movement of object without using timer

try using DrawNow() coorectly, after resetting each coordinate.


Jupitar

  • Login to reply to this topic.