Touching an object in a tweened animation?

by Michael » Fri, 23 Apr 2010 02:59:30 GMT

Sponsored Links
 I'm having trouble porting a simple game I developed for the iPhone
over to Android. The game has an animated ball which moves from Point
A to Point B. The user must touch the ball before it reaches point B
or lose the game. This was easy to implement on the iPhone using Core
Animation since I could locate the current position of the ball by
accessing its animation layer. In Android, I attempted to recreate the
game using tweened animation and represented the ball as a Drawable.
My issue is that I can't determine if the user is touching the spot
because the Drawable apparently bounds do not update as the ball
visually moves - making the program think the ball is always in its
original position. While searching these forums I saw an Android team
dev. confirm that you can't get the current location in a tweened
animation but offered no solution for a workaround. Can I accomplish
this on the Android using my current approach? If not, what approach
should I use?

Best regards,


Other Threads

1. 6-channel aac playback

I have a 6-channel aac audio file, with the present decoders i can
play this on x86-linux, win32.
But nor on android phone.
Do we have support to play a 6-channel aac audio file?
Please reply asap!



2. Application component not instantiated before launching Activity


I got a null pointer exception in an Activity onCreate() while trying
to access my Application object (extended from exception occurred very rarely and i
have no way to reproduce this again.My App starts a service on
BOOT_COMPLETED intent and the null pointer exception seems to have
occurred during boot up. Can somebody please throw some light on this
issue? Application should have been created before creating any



3. Astro File Manager java sources ?

4. HelloWebView tutorial - onKeyDown doesn't work without WebViewClient

5. Immediate Need for Multiple Requirements

6. Write a file to sdcard...

7. How to display DATA SMS