• Runtimes
  • Exploding a spine object

I have a spine character in my [Corona SDK] program whom I'd like to explode. Is there a way I can programmatically gain control of all its parts to make it explode and have all it's pieces fly in other directions.

Related Discussions
...
  • Изменено

You can stop updating the skeleton and then apply transforms manually.

For example:

time += Gdx.graphics.getDeltaTime();
if(!explode) {    
animationName.apply(skeleton, time, time, true, null) } else { skeleton.findBone("bonename").setPosition(...); }

Here I only apply an animation if the boolean explode is false, if it's true I find a bone and set the position of it manually. Keep in mind it's pseudocode.

Thank you!!!