IOS game Developement Problem

IOS game Developement Problem
0.0 0


hey everyone, i am stuck in how to import frames from plist into project and also add them into array and how to animate those frames ??
please help me friends
thank you


That`s easy!
//First load frames:
CCArray* frames = new CCArray;
CCSpriteFrameCache* frameCache = CCSpriteFrameCache::sharedSpriteFrameCache;
CCString* fileName = CCString::createWithFormat;
CCSpriteFrame* frame = frameCache
CCAnimation* animation = CCAnimation::createWithSpriteFrames(frames, 1);
CCAnimate* animate = CCAnimate::create(animation);

//Don`t forget to delete Array!


It works fine thanks for your help…