seregaukr

Hello everyone. I call setAnimation and after that i calling findSlot and it return me Slot with 0,0 coordinates. But after some time passing findSlot return me correct coordinates. I try force calling Update method of SkeletonAnimation but cooridanates a wrong too. How i can return correct coordinates of Slot immediately after animation creation? Thx.
seregaukr
Posts: 10

badlogic

Could you post the code you use to set the animation, update the animation and skeleton and fetch the slot plus coordinates?
User avatar
badlogic

Mario
Posts: 1052

Nate

Slot's don't have a position. Do you mean bone? If you set or add an animation to your AnimationState, you need to apply it to your skeleton. If you don't, the skeleton will not have been posed by the animation until the next frame (SkeletonAnimation applies the AnimationState every frame).
User avatar
Nate

Nate
Posts: 7625

seregaukr

Sorry guys it was my mistake i am calling update method before setAnimation. Thx.
seregaukr
Posts: 10


Return to Runtimes