Hello, 🙂
I have an spine animation, which has question shape.
so, if skeleton.flipX is true for direction then question mark is mirrored.
you know it makes not to understand its symbol.
so i tried to set negative to bone.scaleX through code when direction is reversed.
it looks working correctly at first.
but after execution of another scaling animation of same bone part,
code can't work, even after calling updateWorldTransform().
tried to change order of below code Part 1 and Part 2, but it has no effect also.
I think, in case of animation has scales,
scaling with code is not working.
because it overwrites during animation.
this.emotionBone = this.skeleton.findBone('emotion');
// Part 1.
if (this._direction != 'right') {
this.emotionBone.scaleX = -1;
} else {
this.emotionBone.scaleX = 1;
}
this.emotionBone.updateWorldTransform();
// End of Part 1
// Part 2.
var res = this.state.setAnimation(1, this._emotion, false);
// End of Part 2
How to solve this problem?
Should i create new bones for each question-like image animation ?