I am new to cocos2D can anyone suggest an easy solution to the problem?
I have a windmill with 8 bars on the windmill with each bar separated by 45 degrees, where half o
You declare your action, "rot" as an instance of CCRotateBy yet when you allocate it, you begein with [CCRepeatForever[...]]; If you wanted you could do
[CCRepeatForever[...]];
CCRotateBy *rot = [CCRotateBy actionWithDuration:5 angle:360];
[windmill runAction:[CCRepeatForever actionWithAction:rot]];