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
mySprite.flipX = 180;
where mySprite is the name of your sprite you want to flip.
CCFlipX *flipOnX = [CCFlipX actionWithFlipX:YES]; [mySprite runAction:flipOnX ];
where mySprite is the name of your sprite & flipOnX is the name of the CCFlipX action.
🙂 . You can try the Y-direction your own!