Tell me more ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I am working on a card game and would like to ask if someone could advice me how to implement a flip of a card in Cocos2D?

share|improve this question
found a possible solution: cocos2d-iphone.org/forum/topic/15771 – PeterK Nov 30 '11 at 22:43

1 Answer

Flip animation in cocos2d-android-1 like that...

CCSprite sprite=CCSprite.sprite("icon.png");
CCIntervalAction a = (CCIntervalAction)CCOrbitCamera.action(2, 1, 0, 0, 360, 0, 0);
addChild(sprite,1);
sprite.runAction(CCRepeatForever.action(a));
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.