Dear!
When i flipX, the CCSkeletonAnimation is wrong animation position.
My code here:
charac->_skeletonNode = CCSkeletonAnimation::createWithFile(Constant::pathResourceChar(pathJson.c_str()), Constant::pathResourceChar(pathAtlas.c_str()),0.4f);
charac->_skeletonNode->setAnchorPoint(ccp(0, 0));
charac->_skeletonNode->setPosition(ccp(0, 0));
charac->_skeletonNode->skeleton->flipX=charac->isEnemy;
charac->_skeletonNode->isPause =false;
charac->_skeletonNode->updateWorldTransform();
charac->_skeletonNode->setAnimation("Chay", true);
charac->_skeletonNode->updateWorldTransform();
charac->_skeletonNode->timeScale=1+this->stats->getMoveSpeed();
charac->updateBoundingBox();
My files here:
https://www.dropbox.com/sh/mvmgs29j2gym ... ofPCJVkzoa
Video for issue:
https://www.youtube.com/watch?v=Y87molQ ... e=youtu.be
Please help!