0
我正在开发与cocos2d旋转轮应用程序。
车轮将从俯视图中看到。
我可以旋转车轮(只有一个精灵)&停止纺车。cocos2d轮子旋转像幸运轮
wheel = [CCSprite spriteWithFile:@"wheel500.png" rect:CGRectMake(0, 0, 500, 500)];
id spin = [CCRotateBy actionWithDuration:.5 angle: 360];
id spins = [CCRepeat actionWithAction:spin times:8];
[wheel runAction:spins];
车轮有6段或8段。我想在所有的段(动态)添加文本。
感谢您的任何提示...
谢谢...它帮助我很多.. =) – moon 2011-03-03 04:27:37