Tag Archives: Occasions

How to Flip Sprite in Cocos2D ?

Hi, On certain occasions you may need to flip the sprite you are using in your application. There are two ways to flip a sprite. Let’s see how this can be done along X-direction Method:1 mySprite.flipX = 180; where mySprite is the name of your sprite you want to flip. Method:2 CCFlipX *flipOnX = [CCFlipX actionWithFlipX:YES]; [mySprite runAction:flipOnX… Read More »