Hi,
 i'm implementing a first part of a game,.Basically the game consits
of a "baseball bat", that the user is able to move over the screen as
fas as whatever the mouse left-button or finger touch is pressed or
pushed. This "baseball bat" should be situated to a short distance of
the finger touch/mouse-click pointer, and should move at the same
speed the user move its finger/mouse. All of this is to be able to bat
some balls that will be coming from the top of the screen.

The baseball bat is implemented with a View, and has its onDraw method
overriden in order to draw the baseball bat on it canvas. To make the
baseball bat moved, i've override the onTouch event of the
FrameLayout, in order to receive the mouse event coodinates, remove
the baseball bat View from the old position and create a new View with
at the new updated position.

I'm facing the following problem: if i move the mouse pointer too
fast, the baseball bat doesn't have it position updated at the same
speed. So there is a disgusting delaying effect, between both of
them.

How can i solve this problem?
Pherhaps the strategy to remove and add, a new view to re-render the
baseball bat is incorrect....

Could somebody give me a piece of advice or an example to fix this?

Thanks!

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to