How to implement animation along the way using the iPhone SDK?

I am developing a game application for iphone. There is one object (fly) in my application. In my application, this object moves straight to use the animation, but I want to move the object realistic.so the path should be a curve. my question.

Edit: how can I create a path with an arc, how to run an object from one place to another using curves ...?

+6
iphone core-animation
source share
2 answers

For example, code that performs animation along a curved path, you can consult my answer to this question . As Till suggests, you'll want to use CAKeyframeAnimation with the curved Core Graphics path set for the animation path property.

+4
source share

I created a tutorial that includes a working example of animating a view object (UImageView) along a curved path and posting it on GitHub. You can find it here:

Core Animation Demo

+3
source share

All Articles