iPhone app spinning an image from the last position

I am trying to create an animated spinning image. This is all fine and I am using CABasicAnimation as described in this thread how can I use animation in cocos2d?

My problem is that I want to spin the image more than once a random number of times and I want to spin it from it's last position. At the moment I can get the image to spin, it finishes in a random position but then if I try to add another spin it resets the image to its initial position. I have been searching for a solution for ages now, if anyone has any tips that would be most appreciated.

I guess I want to replicate the picker spinning but with a 2d image spinning around a central point - if that is clearer!

Thanks

Answers


Did you set

animation.cumulative = YES;

?

That SHOULD have the animation continue from where the previous one left off.


Need Your Help

How to handle return value of snippet() in SQLite with JavaScript?

javascript jquery sqlite

I can't work out how to access the returned value of a snippet() search in SQLite. If I search like this:

Append <Script> Tag to Body?

javascript jquery html

I want to append a script tag to the body of my HTML page. I added the following in my page: