Currently, Spine does not have a direct "Flip Over" option in the editor to reverse an entire skeleton and its animations. However, you can achieve a similar effect by manually reversing the keys in the dopesheet. Here are the steps to do this:
- Select All Keys: Press the spacebar to make all the keys visible. Then, box select the first row to select all the keys.
- Resize the Selection: Hover on the left side of the box and resize it past the length of the animation to double the animation length.
- Move Keys: Move all the keys so that they start back at 0.
- Adjust Curves: If there are curves, you will need to manually readjust them as they do not automatically reverse.
For runtime flipping, you can use the skeleton.scaleX
or skeleton.scaleY
properties to flip the skeleton horizontally or vertically.
Here is a visual example of how curves are reversed when using box select to "flip over" the keys:
Before:
Loading Image
After:
Loading Image
For more details, you can refer to the Dopesheet view - Spine User Guide.
I hope this helps!