Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use Spine in Cocos2dx

In cocos2dx, I use the class skeletonAnimation to create the skeleton animation which uses the resources exported by spine. We know the class skeletonAnimation is the subclass of node not is sprite.
How to do to make the skeleton animation flip the node as it like to use the method setFlippedX() in sprite node.

like image 682
MoonBIrd Avatar asked Sep 11 '25 02:09

MoonBIrd


1 Answers

Use the method Which is inherited from class Node: setScaleX(-1), it works!

like image 188
MoonBIrd Avatar answered Sep 13 '25 18:09

MoonBIrd



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!