I want to rotate a square and keep it at one position,but it's not always there(moved about 1 pixel).
The size of the image is 50x50.
[squareSprite setPosition: ccp(100, 100)];
[squareSprite setTransformAnchor: ccp(25,25)];
[squareSprite runAction:[RotateTo actionWithDuration:0.1f angle:90]];