- Modifié
I can't control the animation time
Hi~
I use cocos2dx engine
If animation only used move, scale, rotat , I use timeScale , time and lastTime can control animation time.
go forward and go back work fine.
But animation used mesh deform or Skeletal animation, it not work. It looks like the property doesn't work
and that I set trackEntry.timeScale = 0 , it cant pause. only set SkeletonAnimation.setTimeScale(0) can pause
How can I control the animation time with all animation type?
I want to control the animation time go forward and go back
Thanks a lot !
You can only have an animation go forward I'm afraid. trackEntry.timeScale = 0 should work as intended for all timeline types. Can you provide me with a sample that reproduces the issue?
Ok, the spine export file in the attachment, Thanks a lot
Sorry, I wasn't clear enough. I need to see the code that gives you issues, preferably in a self-contained example, like the Spine cocos2d-x examples in the runtime repository.
Thanks, in poker.zip , the sample file you can control the animation time?
I want control it, trackEntry.timeScale = 0 can't pause and trackEntry.time can't control time
The code is very simple, I upload code.zip.
Thanks a lot
Hi~
I have upgraded the library, but It still can't work
After the upgrade, I use track.timeScale , track.trackTime, track.trackLast , it still can't work
The resource use code.zip or use spine sample resource raptor.json. raptor.atlas, raptor.png
I don't know what to do
Thanks a lot !
What Spine runtime is this? It's not one of our official runtimes. Also, all the code does is create a skeleton and then set an animation.
I'm also having trouble to understand what it is you are trying to achieve. If you do not want the skeleton to update, and animations to be applied. simply don't call AnimationState apply
and Skeleton#updateWorldTransforms.
Hi badlogic
Thank you for reply, The problem has been solved !