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,
Michael

--



Other Threads

1. Droid Does Everything鈥? Excep t Tethering

di tempat ku .. droid tether uda isa konek ama laptop ... tp kok gada
koneksi internet nya ya ? apa harus di set lagi biar isa share internet ?

2010/8/4 Said Muhamad Husni <saidmhu...@gmail.com>



> 

2. Split line of text into few lines

Hi,
I'm wondering how can I split single line text into few lines. I need
it for game. I want to make it in canvas. It will be notification
popup, but sometimes text is too long (I draw text canvas.drawText()),
and I need to split it and draw in few lines in rows. Anyone knows a
good solution? I saw methods mPaint.measureText() or
TextUtils.split(), but it isn't so good in my case. Is there other
method?

-- 

3. Launch application or service from html link?

4. Adding new folder to repo?

5. How to configure proxy settings on my Droid with Android 1.6 ?? plz help

6. Activities and Multiple Views

7. LVL - A Massive Concern