¡@

Home 

2014/10/15 ¤U¤È 10:04:57

iphone Programming Glossary: ccspriteframecache

Random Sprite Destinations

http://stackoverflow.com/questions/3817637/random-sprite-destinations

void addTarget CCSpriteSheet sheet CCSpriteSheet spriteSheetWithFile @ meteorImgs.png capacity 50 self addChild sheet CCSpriteFrameCache sharedSpriteFrameCache addSpriteFramesWithFile @ metImg.plist target CCSprite spriteWithFile @ Frame2.png rect CGRectMake..

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.. 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 .. iphone cocos2d cocos2d 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..

How to convert a CCSpriteFrame to a CCTexture2D (Cocos2d)

http://stackoverflow.com/questions/8261132/how-to-convert-a-ccspriteframe-to-a-cctexture2d-cocos2d

to convert a CCSpriteFrame to a CCTexture2D Cocos2d Is it possible to convert a CCSpriteFrame that was taken from CCSpriteFrameCache and convert it into a texture that can be set on a sprite texture property iphone ios xcode cocos2d iphone share improve..