Animation Help

Tutorials concerning the OpenGL® ES cross-platform API for full-function 2D and 3D graphics on the Google-Android platform.

Animation Help

Postby reddy506 » Fri Oct 22, 2010 1:15 pm

I have four images, 3 in small size and one in bigsize.

the bigimage is in centre position and aligned bottom.

if user clicks or swipes big image, it should move to another image place

(the motion should be in circular or oval), i.e third image should come to big image place and

second image should move to third image place.

and the image is which is in center position should be in big size and

remaining things should be in small size.

I hope all understand the question.

I need some idea or logic or good links to implement it.

Thanks in advance.
Junior Developer
Junior Developer
Posts: 11
Joined: Fri Sep 03, 2010 12:13 pm


Re: Animation Help

Postby b_richh » Wed Dec 15, 2010 3:12 am

From one noob to another, I would imagine that the logic would be to figure out an equation for the elliptical path that you want the images to follow. You motion would then be to be a certain Y given an X. Since the equation should give you two return values (two Y's for a given X) you would need to make sure you are using the correct one - ex. if old Y < Z, use the lower Y value, or perhaps check the X value against the old X value. If you are reversing directions, you would use the other Y value, make sense. Then you simply could change the scale of the image depending on the location. Hope it helps if you still need it.
Once Poster
Once Poster
Posts: 1
Joined: Wed Dec 15, 2010 3:04 am


Return to Android 2D/3D Graphics - OpenGL Tutorials

Who is online

Users browsing this forum: No registered users and 2 guests