Hello,
I'm using a CCSequence with two consecutive actions, a CCRotateTo and a CCCallFunc.
Everythings works fine, but :
The selector of the CCCallFunc is called as soon as the rotation is set, not as soon as the rotated Node is drawn (with the final rotation).
When I take programmatically a snapshot of the node in the CC Called Func, the rotation is not complete !
Do somebody have a simple solution to call the selector when the Node has been drawn with the right rotation ?
Thanx.
CCSequence, CCCallFunc and -(void)draw synchronization
(4 posts) (3 voices)-
Posted 1 year ago #
-
Is it one frame off? That's the most it should be off as far as I can remember.
Can the function call be delayed or does it need to be immediately following the RotateTo?
Posted 1 year ago # -
If it's only a small, consistent overlap between the two actions, you can try putting a CCDelayTime action between the CCRotateTo and the CCCallFunc to add a little "buffer" time.
Posted 1 year ago # -
Good and simple idea, thanks !
The CCDelayTime action with a 0.05 delay seems to do the job !Posted 1 year ago #
Reply
You must log in to post.