Hi guys,
I'm the maintainer of the Spine runtime for StageXL and i got a question from a user who had a problem with an animation. I'm not sure if it is a bug in the runtime or if it is the correct behavior. So here is the problem:
Let's say you have an animation timeline with 100 frames and you set the attachment to null (invisible) at frame 50. In the first animation loop you will see the attachment from from 0 to 49 and from 50 to 99 the attachment will disappear - so far so good. When the second animation loop starts the attachment is still invisible at frame 0 and you won't see the attachment at all in the second animation loop. So you have to set a keyframe at frame 0 to make the attachment visible again.
The strange thing is that the animation loop in the Spine animation tool does not behave the same way. Every time the animation starts at frame 0 the attachment will be reset to be visible again. To make a long story short, is this a bug in the runtime? The Spine runtime for StageXL is a port of the AS3 runtime, but i also checked the LibGDX source code and it looks that the behavior is identical over different runtimes.
Thanks for you help,
Bernhard