摘要: 利用texture atlases生成动画中讲到如何添加动画,如果想要调用已添加的动画怎么办?在1.0.1版本以前的cocos2d添加动画的方法为:CCAnimation *anim = [CCAnimation animationWithName:@"dance" delay:0.2f frames:frames];但之后的版本中此方法已deprecated,已变为CCAnimation *anim = [CCAnimation animationWithSpriteFrames:frames delay:0.2f];PS:frames为NSMutableArray,其o 阅读全文
posted @ 2013-08-27 15:51 CreeperChange 阅读(181) 评论(0) 推荐(0) 编辑