Forum rules - please read before posting.

Spine 2D Integration

edited May 19 in Technical Q&A

Hi, I'm making a 2D game and currently exploring Spine 2D. I followed this instruction https://adventure-creator.fandom.com/wiki/Spine_Integration, and I have a couple of questions:

  • My player character is not moving.
    The idle and walk animations are working, but the player doesn't move toward the point where I clicked. Here’s my setup https://imgur.com/a/N6HKDgw, and I'm not getting any console messages. Did I set it up wrong? Was I supposed to assign the 'SpineAnimationScript' from this link https://adventure-creator.fandom.com/wiki/Spine_and_Adventure_Creator
    to the player? But I couldn't assign it as a component.

  • In the player's prefab, how should I set up the 'Head on separate layer' feature?

Any advice will be greatly appreciated. Thank you so much for your help in advance.

Comments

  • I have an update. I realized that Rigidbody and Capsule Collider components were assigned to my character, even though it is 2D. So, I removed them and assigned a Circle Collider 2D instead. Now, the character walks! However, the 'flipping' isn't working. Frame flipping is set to "Right mirrors left" and "Flip Custom Animations" is checked. Did I miss anything?

    Also, I have one more question. In my player prefab, the parent has all the components such as

    • Skeleton Mesh,
    • Mesh Renderer,
    • SkeletonAnimation,
    • Audio Source, Paths,
    • Player,
    • Direction Mapper, and
    • Circle Collider 2D.

    The child only has Audio Source and Sound components. Is this the correct structure? Thank you so much for your help.

  • https://adventure-creator.fandom.com/wiki/Spine_Integration and https://adventure-creator.fandom.com/wiki/Spine_and_Adventure_Creator are two separate integrations, written by separate authors - the former being more the more commonly-used.

    I can't say with certainty that the integration supports AC's "frame-flipping" feature - but AC handles this by affecting the scale of the character's "Sprite child". If it was possible to use, you'd need to move the character's skeleton/mesh etc to a child object, and assign it in the Player's Inspector - in the same way that e.g. Brain2D is in the 2D Demo.

  • Thank you so much for your quick reply. And thank you for mentioning 'Sprite Child.' The first link you mentioned works great. It was my mistake. While trying various things, the sprite was missing in the Sprite Child. I apologize.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.