Search code examples
ioscocos2d-iphonetexture2d

Cocos2d: Invert a texture, display the mirror image?


How could I invert a Texture created from an image (I mean display the mirror image), if I have for example a kid rising his left hand I'll get a kid rising his right hand. Thank you.


Solution

  • I found the solution

    aSprite.flipX = YES;