¡@

Home 

2014/10/15 ¤U¤È 10:13:34

iphone Programming Glossary: runaction

How to approach -hd files

http://stackoverflow.com/questions/10232539/how-to-approach-hd-files

actions moveRight moveLeft nil CCRepeatForever repeat CCRepeatForever actionWithAction sequence parallaxNode runAction repeat return self on dealloc you need to release all your retained objects void dealloc in case you have something to dealloc..

UIScrollView and Cocos2D

http://stackoverflow.com/questions/2457380/uiscrollview-and-cocos2d

setTag 12 I am creating the sprites in my layer myImage.position ccp 53 coordinate.x 0.52 57 coordinate.y 1.45 myImage runAction FadeIn actionWithDuration 0.3 myImage.relativeAnchorPoint YES self addChild myImage z 1 The sprite is using the TouchesDispatcher..

Random Sprite Destinations

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

position ccp 160 0 id actionMoveDone CCCallFuncN actionWithTarget self selector @selector spriteMoveFinished target runAction CCSequence actions actionMove actionMoveDone nil Previous Hello I used Ray Wenderlich's code for this. My question is how.. 2 actualY id actionMoveDone CCCallFuncN actionWithTarget self selector @selector spriteMoveFinished target runAction CCSequence actions actionMove actionMoveDone nil iphone cocos2d iphone share improve this question to be honest this..

CCMoveTo of Cocos2D

http://stackoverflow.com/questions/5734072/ccmoveto-of-cocos2d

touch view CGPoint convertedLocation CCDirector sharedDirector convertToGL location spriteA stopAllActions spriteA runAction CCMoveTo actionWithDuration 1 position convertedLocation it can be moved but not only four direction and how can i use spriteB.. ccp convertedLocation.x 0.0f else convertedLocation ccp 0.0f convertedLocation.y spriteA stopAllActions spriteA runAction CCMoveTo actionWithDuration 1 position convertedLocation Next you'll need to implement collision detection and see if the..

How can i apply lens effect to my UIImage?

http://stackoverflow.com/questions/6126515/how-can-i-apply-lens-effect-to-my-uiimage

CCLens3D actionWithPosition ccp size.width 2.f size.height 2.f radius 240.f grid ccg 15.f 10.f duration 0.f img runAction lens Your project is probably a UIKit project so you don't want to restart your project from scratch. So in the cocos2d..

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

walkAction CCRepeatForever actionWithAction CCAnimate actionWithAnimation walkAnim restoreOriginalFrame NO actor runAction CCSpawn actions walkAction nil I want to pause this animation on particular frame and particular trigger. and then again.. particular trigger. and then again resume animation after particular trigger. I tried using stopAction and then again runAction. But it stops working after some iteration. and i need to crate animation and action again in order to run that animation.. walkAction CCRepeatForever actionWithAction CCAnimate actionWithAnimation walkAnim restoreOriginalFrame NO actor runAction CCSpawn actions walkAction nil i used the above code where i want to pause my animation action. and added following code..