Hi, I'm making a 2D game using Spine and have a quick question. If I use Character: Animate and check the Loop option, is there a way to stop the animation within AC's Action? Thank you so much for your help.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Another Action of the same type, with its method set to "Reset To Idle".
Otherwise, run another animation on the same track index that doesn't loop.
Thank you so much for your reply!
I have one more question regarding mixing multiple animations with an idle animation. Sometimes, I need to mix facial expressions and hair animations with the blink and idle animations. However, when I use a Track Index higher than 0, the Character: Animate Return to idle after? option doesn’t stop the looping animation. Is there a workaround to stop a looping animation that uses a Track Index higher than 0? Thank you
I'll take a look.
I'm not seeing an explicit "Stop animation" function in the Spine code - the closest I've found is SetEmptyAnimation.
Here's an experimental update to the AnimEngine_Spine and DirectionMapper scripts that allow the "Stop Custom" method to call this function. See if it gives the functionality you're looking for:
https://paste.ofcode.org/NKLNuJ2Md2CjwvkEKLJFaW
https://paste.ofcode.org/rfnRidRQQnPEyZw7tSLjvC
Thank you so much for your help! It works perfectly! I really appreciate your time and support.
Hi, I'd like to report an issue with the new AnimEngine_Spine and DirectionMapper scripts. They don't allow the Object: Animate with Animation Engine: Custom to play custom animations. https://imgur.com/a/CiTNjqE
I reverted to the previous versions of AnimEngine_Spine and DirectionMapper (from the wiki's history dated June 22, 2024), and with those old scripts, Object: Animate with Animation Engine: Custom works again.
I created the following script with ChatGPT and am wondering if it's 'legal' in terms of performance for stopping the animation. However, the Duration and Wait until finish options don't seem to work.
Thank you so much for your help.
https://paste.ofcode.org/xXYLVR86xQqtPvWrhG3ixK
I don't have such an issue on my end - did you copy/paste the scripts into the correct filenames? Try it in a fresh project with just AC and Spine installed, and the custom scripts placed outside of the AC folder.
Hi Chris, you're right, it works. I tested it on both a fresh project and my existing one, and it worked perfectly in both. I'm not sure what the issue was yesterday. Sorry for the hassle. (I think I need some fresh air...)
Thank you again for your enormous support, even over the weekend. I really appreciate it.