I have this problem: I was trying to build many animations, right?
In the init() I’ve made something like this:
character->runAction(characterRunningAction ) // I get an error every time I've tried
spriteCache = CCSpriteFrameCache::sharedSpriteFrameCache();
spriteSheet = CCSpriteBatchNode::create("character.png");
characterSprite = CCSprite::createWithSpriteFrameName("spriteGeneric.png");
CCArray* characterRunningFrames = new CCArray();
//for() loop adding the frames...
characterRunningAnimation = CCAnimation::createWithSpriteFrames(characterRunningFrames, 0.08f);
characterRunningAction = CCAnimate::create(characterRunningAnimation);
// Here I've tried:
characterRunningAnimation->retain(); // And nothing happens.. I get errors too...
I don’t know how I could do something like having a list of actions, and then run one of them from the update method.
Thanks a lo in advance!