Yes, you can flip things in Spine! There are a few ways to achieve flipping depending on what you need:
Flipping at Runtime
You can flip your entire skeleton at runtime using skeleton.flipX or skeleton.flipY. This is useful for flipping a character to face different directions without creating separate animations.
Flipping Individual Bones
For more specific control, like flipping eyelashes during a blink animation, you would typically animate the bone's scale. You can:
- Key the bone's scale values during animation
- Use negative scale values (like -1 for X scale) to flip the attachment horizontally
- Use negative Y scale to flip vertically
For Your Eyelash Example
To achieve the eyelash flip effect during blinking (similar to the Live2D example), you would:
- Create your blink animation
- At the point where you want the eyelash to flip, key the eyelash bone's scale
- Change the scale to negative (e.g., scale Y to -1) to flip it
- Animate the transition smoothly by adjusting the timing curves in the graph view
This gives you full control over when and how the flip occurs during the animation, letting you create that natural eyelash curl effect during blinks.
The graph and dopesheet views are very helpful for fine-tuning these scale animations and their timing!