Oleksandr Matrosov
Oleksandr Matrosov

Reputation: 27191

Cocos2d load animation from plist

I have found this link for understanding how to create animation path for sprite using Adobe tools and plist file. But I still can't figure out how to create parser for this file. Is there already made solution how to do it or do I need to create it in my own?

Upvotes: 0

Views: 873

Answers (1)

YvesLeBorg
YvesLeBorg

Reputation: 9089

This will parse the file, load the texture, and create all the spriteFrame objects you need:

 [[CCSpriteFrameCache sharedSpriteFrameCache] addSpriteFramesWithFile:@"myFrames.plist"];

Upvotes: 1

Related Questions