- تم التحرير
Struck poses problems - game animations not working properly
Hi guys,
I'm having some problems with the animations, the struck poses appear on top of the animations in the game, the devs says it might be because of the skins, could you give me some tips to fix this ? thanks
If you've keyed a slot to be visible you need to make sure you set a key to hide it again on other animations.
But you can also use skeleton.setSlotsToSetupPose();
to force it to reset slots to the setup pose and call this after each animation ends.
Hey Shiu,
thanks for the quick answer, well as you could see on the struck pose animation the skins aren't active as on the walk animation and also on setup mode the images are all hidden, that means no skins on, so as far as I know for struck pose there is only one image available with key on, so what am I missing ? why isn't working ?
should I tell the dev to use skeleton.setSlotsToSetupPose() ? or it's a command inside spine ?
thanks again :yes:
In the struck animation you set a key on the slot to show the struck pose. Now when you switch to a different animation at runtime that key is still set to be visible.
So you can go through all your animations and set a key for that slot to hide it again or tell the devs to use skeleton.setSlotsToSetupPose()
Thanks Shiu ! :yes: we added this skeleton.setSlotsToSetupPose() and it works fine now :whew: