iphone Programming Glossary: sharedspriteframecache
Random Sprite Destinations http://stackoverflow.com/questions/3817637/random-sprite-destinations sheet CCSpriteSheet spriteSheetWithFile @ meteorImgs.png capacity 50 self addChild sheet CCSpriteFrameCache sharedSpriteFrameCache addSpriteFramesWithFile @ metImg.plist target CCSprite spriteWithFile @ Frame2.png rect CGRectMake 0 0 60 120 CGSize winSize..
how to pause and resume action applied to the ccSprite? http://stackoverflow.com/questions/6654468/how-to-pause-and-resume-action-applied-to-the-ccsprite to pause and resume action applied to the ccSprite I have created an animation like CCSpriteFrameCache sharedSpriteFrameCache addSpriteFramesWithFile @ Actor.plist spriteSheet CCSpriteBatchNode batchNodeWithFile @ Actor.pvr.ccz self addChild spriteSheet.. NSMutableArray walkAnimFrames NSMutableArray array for int i 1 i 8 i walkAnimFrames addObject CCSpriteFrameCache sharedSpriteFrameCache spriteFrameByName NSString stringWithFormat @ clip000 d.png i CCAnimation walkAnim CCAnimation animationWithFrames walkAnimFrames.. iphone share improve this question I solved my problem by creating a animation with 1 frame CCSpriteFrameCache sharedSpriteFrameCache addSpriteFramesWithFile @ Actor.plist spriteSheet CCSpriteBatchNode batchNodeWithFile @ Actor.pvr.ccz self addChild spriteSheet..
|