CCArray frames = CCArray::create;
for {
CCStringstr = CCString::createWithFormat(“a%04d.png”, i);
CCLog(str~~>getCString);
frames~~>addObject(CCSpriteFrameCache::sharedSpriteFrameCache()>spriteFrameByName));>runAction(a);
}
CCAnimation animation = CCAnimation::create;
CCAnimatea = CCAnimate::create;
this
Always crash here with:
Assertion failed!
Expression:dynami_cast<CCAnimationFrame*>(*arr)
how can i fix this?