CCArmature object Flipping - x axis.


#1

Hi~!

Recently, I tried to use CCArmature for object animation instead of CCSprite…

When it comes to “CCSprite”, I used to use SetFlipX() function for Flipping Object sprite….

However, CCArmature instance does not have related things…

When I looked the Example “ArmatureScene.cpp”, I found “Cowboy” object uses “runAction and SetScaleTo()” that controls parameter… like runAction(CCScaleTo::create(0.5f, –0.5f, 0.5f));

But, we must called play() function after runAction…( it means I have to change current Animation… or save animation state…)

I have a problem, because I don’t want to change current Animation Action and… just want Flipping object……

Is there any function for just object Flipping in CCArmature ?


#2

Oh, I’m sorry, I found an answer….

Just object->SetScaleX() can be solution……