Take the 2-minute tour ×
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 very new to Cocos2d programming and was thinking to build up my first app. I learnt some basics related to CCMenu and CCMenuItems. But I was wondering whether I could provide animations in such a way that every CCMenuItem would animate first and then appear in the CCMenu. Will that be possible in Cocos2d? Can I get some tutorials or samples regarding this?

Thanks.

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

AFAIK there are two ways to implement that, the first one which is easier is to create an Object, then using CCAnimate and CCSequence classes, first animate an image and then convert it into an image.

the harder way which will result in cleaner code (I suggest this one) is to create a class which inherits normal CCMenuItems class. and change it's constructor to start an Animation instead of immediately being clickable.

share|improve this answer
add comment

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.