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