views:

208

answers:

2

Hello guys!

Maybe is there a way to do animation only on one image? So if I have an UIImage and I want to animate it like a wave. Is this possible? And if yes, can you give me some examples or a link to start or something like this? (I used google but didn't find any good start link...)

A: 

Yes - you may want to look into cocos2d - http://www.cocos2d-iphone.org

or OpenGL ES as mentioned above

or Quartz

It all depends on what this 'Wave' effect needs to look like, if it's what i think, you couldn't achieve that by using Core Animation, you would need to look in to these suggestions.

zinc
and without cocos2d? this is a big framework, I want to animate only one image...
Infinity
+1  A: 

OpenGL ES is another possibility. Apple provide all the code to set up a rendering context.

From there you just need to get your image into a texture, define some vertices (more than just four), and move each vertex on a sine wave.

Sam