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. (OOT) Need Help : Petinggi HTC/Sistech

Maaf crossposting,

Ceritanya begini, saya mempunyai HTC Magic garansi resmi. Pada awal
Mei, tiba2 handsetnya habis batere dan tidak bisa dinyalakan. Akhirnya
saya bawa ke Gadtorade di BEC karena belinya di situ. Dicoba-coba sama
bos Lucky untuk perbaiki ga bisa nyala juga, akhirnya diputuskan
dimasukkan ke service center. Nah kasusnya sampai kemarin, dibantu
sama bos Lucky nanyain ke service center Sistech di Bandung, tetap
dibilang masih belum ada kabar dari Jakarta. Dan sama sekali tidak ada
informasi kerusakan apa, dan perbaikan apa yang dilakukan sehingga
memakan waktu 2 bulan ini.

Semoga di sini ada petinggi/orang dalam HTC/Sistech yang bisa membantu saya.


"Indonesian Android Community [id-android]" 

2. Contacts listview question

Hello all,

There are four tabs displayed by Contacts application, they are
dialer, call log, contacts and favorites respectively. Both contacts
and favorites tabs are  the same activity. There is one behavior I
don't know how to work. That is, how listview in favorites tab refresh
self view? There are two ways to adding contact to favorites. One is
via context menu item "Add to favorites" and the other is to click the
list item and touch the star image to be starred. I found that it only
updates the starred column of contacts table, it can be either 0 or 1.
The strange thing is that if I update the starred column value
manually, the favorites can't refresh immediately until you execute
this app next time.
Any ideas or suggestions are appreciated.



3. How AJAX requests work on Android 2.0/2.1 vs. Android 2.2

4. ada androider surabaya yang bisa bantu ane root spica ane gak? :) pleaseeee

5. Newbie Android Only

6. Milestone dan Milestone XT720

7. Test please delete