Cocos2d rotating sprite while moving with CCBezierBy
- by marcg11
I've done my moving actions which consists of sequences of CCBezierBy. However I would like the sprite to rotate by following the direction of the movement (like an airplane). How sould I do this with cocos2d?
I've done the following to test this out.
CCSprite *green = [CCSprite spriteWithFile:@"enemy_green.png"];
[green…