Hey,
I found that the spine animation will be stuck in the first time. But in the next it will run smoothly. My run time is spine cocos2dx(2.0).
The scenario is:
Spine exports 2 png files named aaa.png and aaa2.png.
I put the character in the game running the 'idle' animation which seems everything is okay.
when I change the animation to 'jump', which the attachment resource is in aaa2.png, the animation will be stuck. But if I run 'jump' in the next time, the animation will not be stuck.
I've checked the code in spine-cocos2dx.cpp, it seems that all the png files will be loaded when the character is created.
CCTexture2D* texture = CCTextureCache::sharedTextureCache()->addImage(path);
texture->retain();
self->rendererObject = texture;
That means all the resource which needed by the attachment is loaded.
Wound you kindly help me to explain why the animation will be stuck?