c++ - In cocos2dx v3. How can both scale and rotate with different center -


i use cocos2dx v3.5. want scale , rotate sprite different center. have tried by:

spritecoin->setanchorpoint(point::anchor_bottom_left); spritecoin->setrotation(30.0f); spritecoin->setanchorpoint(point::anchor_middle); spritecoin->setscale(2.0f, 3.0f); 

but not work

i think if want rotate or scale sprites, need change position rotate or scale.


Comments