mewki

Hello!
I was wondering how to achieve the effect of drawing a line with an image (see attachment). I'm kinda new in animation so right now I can't visualize how I would do it in Spine.
Thanks in advance ✨
Nemaš dopuštenje za pregledavanje privit(a)ka dodan(og)ih postu.
Avatar
mewki
  • Postovi: 2

Erika

Hello! there's actually several ways to achieve this effect:
for example you could have a line be attached to two bones, and have an end move to make it spring out till it reaches a corner, activate the next line, repeat etc for every corner.

Even simpler: you could use clipping, and have the whole box already done, and use clipping to reveal it in an animation.
Clipping is generally an expensive operation at runtime, but if you're going to export a gif or video for twitch, it's not a big deal. And actually, it's also not a big deal if all your skeleton has is basically clipping and a few bones like in this case.
Avatar
Erika

Erikari
  • Postovi: 3060

mewki

Thanks for the reply!

Sorry, I'm still trying to figure it out how to reveal parts with clipping 😖
How do I make the clipping "walk" my box?
Avatar
mewki
  • Postovi: 2

Nate

The clipping attachment is a polygon attached to a bone. To manipulate the polygon, you can animate the bone or animate the polygon's vertices.

Keep in mind clipping is expensive, read this:
Clipping attachments - Spine User Guide: Performance

Also, animating the bone is more efficient than animating the vertices, read this for why:
Keys - Spine User Guide: Deform keys
Avatar
Nate

Nate
  • Postovi: 11852


Natrag na Editor