• Editor
  • Upcoming new videos - looking for your requests

Unless you need skeleton draw order changes during animation, you most likely don't need a 3rd project with merged skeletons. You can have 2 separate skeletons, position them both at the same position, and play an animation for each starting at the same time and they will be synchronized and can interact just like they do in the editor, no need to merge into one skeleton.

Animations are small, I would not optimize prematurely, even on mobile.

Related Discussions
...

My reasoning for that method was so that I kept the ability to manipulate draw order during the interaction animation - the character might be in front of parts of an object, and behind others, going in between layers of the object.

I assumed runtime draw ordering was simply drawing the whole object (character in front of object or character behind object)

It would also be easier to do in the editor rather than doing it via code, unless I am misunderstanding?

It is indeed easier to do in the editor, but maybe we can come up with something to make it easier. Maybe some kind of grouping so it's easy to do at runtime.

Draw order, especially one skeleton going between images of another, is only possible by merging the two skeletons into one. You could use the event timeline to notify the runtime when to change the draw order, but that won't help one skeleton going between images of another.

mdidillon написав

I would love a programming tutorial that focus on the basic ideas behind your animationsystem, like simple animation playback, blending animation (transitions between two animations, e.g. going from walking to jump or jumping to falling), mixing animation (doing multiple animations in parrallel, e.g. walking and shooting). I have some problems with implementing my character controller that animations the player character, maybe it is also a result of some open bugs and just my own stupidness 🙂.

I second that Please!!! :$

Also I would love to see a video on collision detection using Spine, I think a lot of people would benefit from that.

місяць пізніше
Nate написав

Draw order, especially one skeleton going between images of another, is only possible by merging the two skeletons into one. You could use the event timeline to notify the runtime when to change the draw order, but that won't help one skeleton going between images of another.

Sorry to drag up an old thread, but I have just got around to coding the object interaction part of my game.

As per my previous posts, I was having trouble understanding the best way to implement the interaction of my character using an object (a vehicle for example), and after reading the suggestions I played around a little tonight and am still none the wiser as to how to approach it.

I do not want to have to include all possible animations the character 'might' do with each object in the character file, as I do not want everything loaded at startup - there is far too much data / images to load all at once - especially as what objects get used in-game is dependant on user input (whether they choose to use an object or not)

I then tried creating the animations within the object (to be interacted with) Spine project so that I could only load the animations once the object was selected by the user and going to be used by the character in-game.

So in Spine I create my object, and then 'Import' my character ready to get to work making them interact.
However, they are of course 2 separate skeletons/rigs and both have their own Draw Order rather than one shared Draw Order - meaning I cannot seem to make them go in front/behind/between each other as I had planned to do when animating.

I can't even use the new Keyable Draw Order feature to achieve this because as I have said they both have their own Draw Orders.

Any ideas on what I should be doing to achieve what I am after?

I have just started this part of the project so it is no problem if I have to start from scratch and approach this in a completely new direction that what I had planned, but I just cannot seem to get my head around what I need to do.

Any help appreciated, thanks.

Anyone got got any info/ideas?
I have a couple of free days this week and would like to get started if possible.

Thanks.

@DoobyDude, One way to do it is to duplicate your existing character skeleton, then add the vehicle you need the character to interact with in the same skeleton. This way you will have all your animations already done.
This is not the most flexible way though.
Another way is to combine the slot list from each skeleton at runtime and then manipulate the draw order. http://esotericsoftware.com/spine-using ... #rendering
We will see if we can come up with an easier way of doing this in the future.

@DoobyDude, loading all skeleton data should be no problem. You can control when images are loaded by implementing your own AttachmentLoader and RegionAttachment. Instead of giving the RegionAttachment the texture region at load time, you can defer loading until later. Eg, outfit your skeleton with attachments, then before drawing it go through them all and give the RegionAttachments a texture region at that time.

You could implement a new attachment type that draws a skeleton instead of a region. Then you can attach this "SkeletonAttachment" to a slot just like a RegionAttachment and have it participate in the draw order. Eg, your vehicle would have a slot where you attach a SkeletonAttachment for your character skeleton.

4 місяці пізніше

Hi Shiu,

I suggest that all graphics and animation of examples are under your authorship. And I found it realy great! So my request not just about Spine "showhow" video, I would like to see how are you creating all that excelent parts of character, I want to know as much as possible little secrets about how to draw all the character's parts then to compose it in ideal animated legs, hands or anything else. Well yes, maybe it not just about Spine, but if your make some video illustrated all the process somewhere on youtube, it will be a real huge help for me to create better animation in Spine itself.

Thanks😉

@Metaphore, don't know how I missed this one, sorry. But just a little update on what is going on with videos. As soon as the new features are in (skinning, IK and possible other short term features that affects the interface) I will be creating new videos for all features including the ones I already created videos for earlier. Lots of stuff has happened in Spine since those videos were made so it makes sense to update them. I'm not sure I would want to create a video on how I do the art for the characters, since there are already so many videos out there that cover art creation in various programs. However I guess I could try and break down the workflow a bit in a video. I've been wanting to do a step by step video for a long time, showing the process of creating a character from start to end, maybe I can do that soon. It's a lot of ground to cover but I will start on the new videos as soon as possible.