thank you very much James,
We still haven't solved the problem yet, but still working on it. Your post is very helpful.
Unfortunately we are still struggling with the project after adding some spine animations. I'm sure we are making something stupid, or missing something key but after a while, the app crashes.
It is definitively a memory issue and not being able to handle the animations properly. It seems that they piled up and neither release nor stop, therefore creating a memory issue. I am using clearTrack(); something like "clearAnimation" that I see it is explained in the documentation. It works but it clears the animation permanently which we do not want. So how can I release, remove or STOP animation run SkeletonAnimation Object in run time by pressing a button or under any callback timely?.
i am using this code snippet to run an animation
SkeletonAnimation *kidNode = SkeletonAnimation::createWithData(kidData);
kidNode->setAnimation(2, "animation", false);
kidNode->setPosition(pos);
addChild(kidNode,2);
Let's say there is a leaf animation that is looping. I want to press a button or callback a method which will stop the leaf animation instantly and there is no further movement of leaf, realease from memory but that will play again in loop mode if we call it again.
Thank you,