Use the spine in Cocos2dx

In cocos2dx, I am using a class skeletonAnimation

to create a skeleton animation that uses the resources exported by the spine. We know the class skeletonAnimation

is a subclass of node, not a sprite.
 How to make skeletal animation flip a node the way I would like to use a method setFlippedX()

in a sprite node.

+3


source to share


1 answer


Use a method that inherits from the Node class: setScaleX (-1) , it works!



+2


source







All Articles