cheezballs

Say for instance I have 2 human sprites. I'd like to use Spine to animate a throw move - where sprite 1 grabs sprite 2 and tosses him over his head. To make this look as good as possible I'd need a way for sprite 1's right arm and right leg to overlap the entirity of sprite 2 while leaving the rest of sprite 1's body parts behind sprite 2.

So, the draw order would be:
1) sprite 1's right arm and leg
2) sprite 2's entire body
3) sprite 1's body (minus right arm and leg)

I haven't found a way to do this using my Spine-animated sprites with Unity. I've seen where I can specify an overall draw order based on the layer for the entire sprite, but nothing that would allow me to specify individual draw orders for each section of the sprite.
cheezballs
  • Postovi: 6

decoamorim

I was going to make a post asking that exact question.

If it is possible to do that. Maybe working the Z pos of the bones?
I really do not know, if someone knows would be great to learn!!!
Developer/Founder at DCF Studios
http://www.studiosdcf.com/
Author of
Cruz Brothers[PS4 / STEAM] [upcoming on XboxOne] - http://www.cruzbrothersgame.com
Bunny Battle Arena[STEAM] - https://store.steampowered.com/app/872340/Bunny_Battle_Arena/
Avatar
decoamorim
  • Postovi: 131

Xelnath

You might need to do 3 separate bodies which all share the same skeleton.
Xelnath
  • Postovi: 408

Pharan

rendering particles in between spine sprites?

This is doable but I'm not sure how to use it at the moment. Worth checking it out yourself.
Avatar
Pharan
  • Postovi: 5366

decoamorim

Pharan je napisao/la:http://esotericsoftware.com/forum/Unity-rendering-particles-in-between-spine-sprites-3934

This is doable but I'm not sure how to use it at the moment. Worth checking it out yourself.
Hey Pharan,

I saw this video yesterday:


I was able to separate an arm in Unity by spawning Submeshes. Just have to learn more about it.
But when i and if i nail this i ll post here.

Ok, so the guy in the other topic teached how to do it:
alex.seeck je napisao/la:- Unfold Advanced of SkeletonAnimation and add as many items to the Submesh Separators as needed
- RELOAD the Skeleton Data Asset
- Add Skeleton Utility and click Spawn Submeshes
- the chosen slots will be the first in the split off meshes, generated as Child GameObjects of the SkeletonAnimation GameObject
- change their Sorting and Ordering directly

Hope this helps anyone

P.S.: For adding a new configuration (lets say from 2 to 3 submeshes) do the following:
- Delete the old submeshes
- Add as many new Submesh Separators to SkeletonAnimation as you need
- ENABLE the MeshRenderer component
- RELOAD the Skeleton Data Asset
- Spawn the submeshes
Following his steps i was able to do it.


-- 23 Nov 2015, 17:25 --

cheezballs je napisao/la:So, the draw order would be:
1) sprite 1's right arm and leg
2) sprite 2's entire body
3) sprite 1's body (minus right arm and leg)

So i believe you just have to set the sorting layer in UNITY right to make this effect after separating the meshes, or even coding the order when this moves occur.
Developer/Founder at DCF Studios
http://www.studiosdcf.com/
Author of
Cruz Brothers[PS4 / STEAM] [upcoming on XboxOne] - http://www.cruzbrothersgame.com
Bunny Battle Arena[STEAM] - https://store.steampowered.com/app/872340/Bunny_Battle_Arena/
Avatar
decoamorim
  • Postovi: 131


Natrag na Unity