Mitch

Full install package of latest Spine CSharp and Spine Unity Runtime with Examples.
Normal
http://esotericsoftware.com/files/runtimes/unity/spine-unity.unitypackage

TK2D OBSOLETE Please use 'Normal' spine-unity runtime and see TK2D Import video below
http://esotericsoftware.com/files/runtimes/unity/spine-tk2d.unitypackage

General Unity Workflow


TK2D Setup Process


Eye Constraint


Ground Constraint


Basic Character Control with Spine and Box2D in mind.


Additive Glow Effects
viewtopic.php?f=11&t=3438



Rope and Spikeball from this thread
viewtopic.php?f=11&t=3453



Spine Attributes


Shared Atlas between Skeletons


Spine Unity Sprite Attachments

viewtopic.php?f=7&t=4206

Bounding Box Attachments

viewtopic.php?f=7&t=4218

Ragdolls


Ghosting
User avatar
Mitch

Mitch
Posts: 966

jpoag

Awesome.
jpoag

Kickstarter 2 backer
Posts: 149

Mitch

Updated with Ground Constraint.

If anyone would like any specific examples of "How to" or "How would Mitch do", please post here :)
User avatar
Mitch

Mitch
Posts: 966

Rayvell

Mitch wrote:If anyone would like any specific examples of "How to" or "How would Mitch do", please post here :)
Hi, Mitch, how to bind this 'ground constaint' with 2D collider?
User avatar
Rayvell
Posts: 39

Mitch

Rayvell wrote:
Mitch wrote:If anyone would like any specific examples of "How to" or "How would Mitch do", please post here :)
Hi, Mitch, how to bind this 'ground constaint' with 2D collider?
Check the use2D parameter on ground constraint.

---

Bunch of improvements to the importer are now on Git.

Also added a Basic Platformer example with one of my current project's characters to the official repo. It's not perfect but hopefully it'll get some of that "Make a game with Spine" stigma out of the way! :nerd:
SpinePlatformerExample.jpg


Please let me know if there're any problems!
User avatar
Mitch

Mitch
Posts: 966

cparki3

Once again amazing work Mitch!! Still waiting on our animator to wrap up some of the new animations, but I can't wait to dig into this stuff! Thank you, thank you, thank you!
User avatar
cparki3
Posts: 18

wagenheimer

One question! Can I change the prefabs which spine imports to me? (Scale, Position).

I changed some prefabs and it seems spine reseted everything to default sometime! Am I doing it wrong?
wagenheimer

Kickstarter Backer
Posts: 29

Mitch

wagenheimer wrote:One question! Can I change the prefabs which spine imports to me? (Scale, Position).

I changed some prefabs and it seems spine reseted everything to default sometime! Am I doing it wrong?
Mm.. I thought I fixed this... make sure you're using the latest Spine Unity runtime.
User avatar
Mitch

Mitch
Posts: 966

PaulMcG

Hey Mitch,
Could you do a walk through of rigging a character specifically using constraints, deforming one image with multiple bones.
Thanks.
PaulMcG

Kickstarter Backer
Posts: 35

Arx

I really dig that ground constraint functionality, but here's one thing that's not really clear to me - what if I wanted to have rigidbody component on that raptor, so that I can have gravity and apply force to him?

If I understand it correctly, by adding the rigidbody, the raptor would now "fall through" the platform underneath him. I would therefore need to add a boxcollider2d to the raptor, which would in turn interfere with those ground constraints - just try adding a boxcollider2d and then test the raptor on the an inclined platform - it looks weird.

Or better yet, here are some pictures from our test - just a simple sticky figure.
On the first picture, you see our sticky figure as he should look on a horizontal platform.


However, when you rotate the platform to an inclined position, his hind leg stands out (second picture). The box collider is too low, preventing the ground constraints to do their job.


On this picture, you see the sticky hero as he should ideally look on an inclined platform - which we achieved by moving the collider a little bit higher.


However, when you rotate the platform so that it's horizontal, he now looks weird (a marriage proposal, maybe?).


There's no way to position the collider in a way that would look good on an inclined plane and simultaneously look good on a horizontal plane. It's either or. We also tried to substitute the box collider with a small circle collider centered at the bottom, which looked slightly better, but not perfect, especially on higher inclines. We also tried having two circle colliders, one for each leg, but that doesn't work either.

Is there any way to use the rigidbody component and the ground constraints at the same time?

On a different note - thanks for all the hard work! It's really awesome just to be able to play with this stuff in the editor.
Arx
Posts: 3

Mitch

There are a few methods to deal with this. The first is to take care in the layer masks for ground constraint that it ignores everything except an environment layer.

The next for bipedal characters is to align just the hip bone with the ground normal the character is above. This all comes up with 3D character control too and there is really no end-all solution heh
User avatar
Mitch

Mitch
Posts: 966

PaulMcG

PaulMcG wrote:Hey Mitch,
Could you do a walk through of rigging a character specifically using constraints, deforming one image with multiple bones.
Thanks.
:rofl: me next please
PaulMcG

Kickstarter Backer
Posts: 35

Mitch

PaulMcG wrote:
PaulMcG wrote:Hey Mitch,
Could you do a walk through of rigging a character specifically using constraints, deforming one image with multiple bones.
Thanks.
:rofl: me next please
That sounds like a job for Shiu lol

Seriously though I'm probably going to talk through making a gun control rig with constraints, I guess I can 2-part it and cover initial setup n stuff too.
User avatar
Mitch

Mitch
Posts: 966

Shiu

Mitch wrote:
PaulMcG wrote:
PaulMcG wrote:Hey Mitch,
Could you do a walk through of rigging a character specifically using constraints, deforming one image with multiple bones.
Thanks.
:rofl: me next please
That sounds like a job for Shiu lol

Seriously though I'm probably going to talk through making a gun control rig with constraints, I guess I can 2-part it and cover initial setup n stuff too.
I've actually just done a video on that topic. Video is encoding now and will be uploaded to YouTube within the next 15 minutes :)

---

Video is now up
User avatar
Shiu

Shiu
Posts: 2184

Rob

Speaking of the platformer example from Mitch.
If I walk down stairs or angled platforms, the player is keep falling rapidly, what stops the player from being able to jump. Is there an easy way to prevent this?

edit: Found some solutions here ->
http://answers.unity3d.com/questions/33 ... -walk.html

I hope I'll get them work with Mitch's platformer controller example.
Rob
Posts: 27

PaulMcG

Thanks Shiu, Really helpfull
PaulMcG

Kickstarter Backer
Posts: 35

MelanieA

Hi! We're using Spine for animations at our work, and only just getting into it. Fascinating program!

The programmers are running into an issue though where Unity doesn't seem to be able to process any of our Stepped/no interpolation commands in Spine. Is there some process we're missing?

Example: if we have image01 on frame 5, and image02 on frame 10, and we don't want it to tween between them... Currently we have to copy frame 5 and paste it on frame 9. Is there a simpler way to do this so the Unity program just knows when tweens aren't supposed to happen? (It's also causing rare, very very rare, flickers between swapping graphics in adjacent frames because we can't set it to no-interpolation for Unity. Very rare! It works smoothly like 95% of the time.)

EDIT:
It would also be nice if there was a feature that allows us to remove interpolation from certain frames in our animation, on the anim side! That would be soooo sweet. :)

Thanks!
MelanieA
Posts: 3

Shiu

@MelanieA you can select keys in the Dopesheet then in the Graph Editor set the keys to be stepped. This can be done on the white keys in the top row of the Dopesheet to affect all keys on that frame.
User avatar
Shiu

Shiu
Posts: 2184

MelanieA

Shiu wrote:@MelanieA you can select keys in the Dopesheet then in the Graph Editor set the keys to be stepped. This can be done on the white keys in the top row of the Dopesheet to affect all keys on that frame.
Heya!

I did know about these, but when it gets to the programmer, for some reason in unity it doesn't seem to recognize that particular command no matter how we put it in?
MelanieA
Posts: 3

Shiu

MelanieA wrote:
Shiu wrote:@MelanieA you can select keys in the Dopesheet then in the Graph Editor set the keys to be stepped. This can be done on the white keys in the top row of the Dopesheet to affect all keys on that frame.
Heya!

I did know about these, but when it gets to the programmer, for some reason in unity it doesn't seem to recognize that particular command no matter how we put it in?
In that case I think Mitch will need to take a look at it.
User avatar
Shiu

Shiu
Posts: 2184

MelanieA

Shiu wrote:
MelanieA wrote:
Shiu wrote:@MelanieA you can select keys in the Dopesheet then in the Graph Editor set the keys to be stepped. This can be done on the white keys in the top row of the Dopesheet to affect all keys on that frame.
Heya!

I did know about these, but when it gets to the programmer, for some reason in unity it doesn't seem to recognize that particular command no matter how we put it in?
In that case I think Mitch will need to take a look at it.
Actually, Shiu, the programmers just retried it with the Stepped graph curve and it worked fine! XD I guess they hadn't tried that particular thing before. Thanks a bunch!!!
MelanieA
Posts: 3

xEclypze

Hi Mitch! I have been searching for an example of this all over the internet but have come out empty handed, perhaps you could shed some light. The simplest way i could explain what i want to do is what your site defines as Procedural Animation. I would like to walk and shoot/attack at the same time. If there is already an example or tutorial that shows how to do this please point me in the right direction! Thanks in advance!
xEclypze
Posts: 1

naligeduo

hi,how to use IK in unity?
naligeduo
Posts: 5

Mitch

I will be posting more examples now that the runtime update is live.

Starting next week heh - participating in global game jam this weekend.
User avatar
Mitch

Mitch
Posts: 966

Halfbiscuit

xEclypze wrote:Hi Mitch! I have been searching for an example of this all over the internet but have come out empty handed, perhaps you could shed some light. The simplest way i could explain what i want to do is what your site defines as Procedural Animation. I would like to walk and shoot/attack at the same time. If there is already an example or tutorial that shows how to do this please point me in the right direction! Thanks in advance!
edit: As Pharan has pointed out I posted my own function before, what you want is:

skeletonAnimation.state.SetAnimation(track, name, looping);
Halfbiscuit
Posts: 8


Return to Unity