Animation during drag and drop
Animation during drag and drop
- Subject: Animation during drag and drop
- From: Rick Bischoff <email@hidden>
- Date: Fri, 2 Jul 2004 12:16:33 -0500
Hello,
I have a chess interface built at the moment and am running into a
problem while animating the opponents move. While the opponents move
is
animating, if I start a drag and drop session (i.e., moving my pawn or
something) the dragged image is flakey (specifically, it is drawing
multiple copies of the dragged image).
My "draggingUpdated" method is not slow at all, it simply passes a
message to a delegate asking if it is OK if the user moves there. No
legal move checking is done, so the delegate just says "as long as your
not capturing your own piece, looks fine from here".
The animation of the user move is done very quickly, from 0.1 seconds
to 0.4 seconds, depending on how far the piece has to slide. The
animation is setup right now to always take 15 frames, regardless of
the time. So at 0.1 seconds per animation, my timer is firing off
every ~0.0066 seconds.
While not animating the drag and drop problem does not happen.
Any suggestions on how I can fix this issue? The user must be able to
start a drag and drop session during the move animation since this is
mainly for speed chess (i.e., entire game in one minute) so turning off
drag and drop while animating is not an option.
Rick Bischoff
Blog, and home for some MacOS X apps --
http://rickjr.org
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.