How to create a simple spin wheel using cocos2d-js?

Hi there! I am just learning cocos2d js. I know how to move/rotate/jump a sprite. Now I want to create a spin wheel by using cocos2d js but I am confused about logic. How can I create this? Is here anyone who can help me please? I will be really grateful. Thanks in advance.

1 Like

Hi, @mehedi you can use
var action = new cc.RotateBy(roundCompleteTime, angleToRotate);
Example:- var action = new cc.RotateBy(1.0f, 360);
this.yourSprite.runAction(action);

1 Like