movement of object without using timer
| Tue, 2008-06-10 12:49 | |
|
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 Thanks in Advance |
|






Forum posts: 1197
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.
Forum posts: 159
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.
Forum posts: 120
try using DrawNow() coorectly, after resetting each coordinate.
Jupitar