Hey all, I'm having an issue in cocos2d that I know must have a quick fix. I'm loading a number of sprites onto a gameboard; the original PNGs are all in a spritesheet, and stored horizontally. I can't figure out how to rotate a select number of these by 90 degrees before the view gets displayed! I tried this:
id a1 = [CCRotateBy actionWithDuration:0 angle:90];
[vehicle runAction:a1];
but it only rotates after the view is displayed. Previously, before using cocos2d, I used this code:
CATransform3D transformOne = CATransform3DMakeRotation(M_PI/2, 0, 0, 1);
which worked fine, and rotated instantly. Is there some sort of instant rotate action for cocos2D?