Hi, all.
I'm building a game and so far I have the
following rulesets:
1. Click on the cheese to eat.
2. Click and drag on the yarn to roll it around.
3. Don't let the cat eat you.
Now, each time the mouse changes direction, I try
to set the appropriate cursor. On a Windows 98
machine, it works in all respects. On a Win2K upgrade
to Windows NT, setCursor() doesn't work when the mouse
is dragging an object. (It works fine when
mouseDragged() is invoked and no object is actually
being dragged.)
Should I use DragGestureListeners and such?
According to the 1.3 API doc,
DragGestureListenerEvent.startDrag() is invoked with
only one cursor, and that cursor cannot be changed
while the drag is still active (and calling
startDrag() again will result in an exception being
thrown). I'd like to be able to change cursors during
a drag event, so what do I need to do?
Incidentally, I'm having flickering problems with
sprites that move. My fault, of course, but I can't
figure it out yet.
Any help would be appreciated.
Cromwell
__________________________________________________
Do You Yahoo!?
Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free!
http://photos.yahoo.com/
CatAndMouse.jar