iphone - cocos2d wheel spinning like wheel of fortune -


i'm developing spinning wheel app cocos2d.
wheel seen top view.
can spin wheel (only 1 sprite) & stop spinning wheel.

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]; 

the wheel has 6 or 8 segments. want add text in segment (dynamically).
hints...

add text wheel.. means text child of wheel.. den done.. ever parent(wheel) does, child(text) follow..


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -