Forum rules - please read before posting.

Spine Pro and Custom Animation

Hi, I'm creating a 2D game using Spine 2D, and I've integrated it with Adventure Creator following the provided instructions (https://adventure-creator.fandom.com/wiki/Spine_Integration). The walking and flipping animations are working perfectly.

However, I'm having trouble with the "Character: Animate" action using the "Method: Play Custom". When I drag and drop the SkeletonData into the Hierarchy, the animation runs fine. But when I set it as a "player," it doesn't work. In the player character's inspector, I noticed that the Mesh Renderer materials keep flickering—they appear and disappear intermittently.
Is there a way to fix this issue and successfully call custom animations?
Thank you so much for your help.

Comments

  • The integration doesn't affect materials, so I'm not sure of the cause there.

    What are your AC/Unity versions, and does it work if you drop the same character (i.e. the Player) into the Action directly, rather than checking Is Player??

    Any comparison screenshots you can share (i.e. what works, what doesn't), will help understand the situation.

  • edited June 2024

    Thank you so much for your response. You gave me the key insight;

    The integration doesn't affect materials,

    It turns out the flickering was due to a simple script attached to the player character that mixed the walk and blink animations. As a novice coder, I sometimes end up looking in the wrong place for the cause. Sorry for that, and thank you again for your help.

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.