Hi, I'm trying to flip an entire skeleton and its animations but can't find the "Flip Over" option (https://en.esotericsoftware.com/forum/d/17125-flipping-an-animation-around). I selected all the keys by dragging the blue box, but when I right-click, the option isn't there. I guess I'm missing something. Is there such an option? If so, where can I find it? Thanks!
Reversing Animation
- Изменено
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: Изображение удалено из-за отсутствия поддержки HTTPS. | Показать
After: Изображение удалено из-за отсутствия поддержки HTTPS. | Показать
For more details, you can refer to the Dopesheet view - Spine User Guide.
I hope this helps!