I have a new project in which I am trying to do the following:
NSURL *url = [NSURL URLWithString:@"http://www.abc.com/images/AnimBear.plist"];
NSString *imageName = [NSString stringWithFormat:@"http://www.abc.com/images/AnimBear.png"];
[[CCSpriteFrameCache sharedSpriteFrameCache]addSpriteFramesWithFile:imageName];;
My animation frames are on the server and I want to run those frames from the server. Does anyone have any idea how to do this?
You need to download the files and save them in the app’s documents directory. Check out the source code for my Cocos2D Webcam Viewer tutorial which does exactly that.