-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
goto delta time (question not issue)? #64
Comments
Something like that: spine.state.tracks[0].time = ...
spine.state.update(0); may be
I'm not sure :) |
Thanks for the pointer. :)
|
spine.state.tracks[0].time is null in this animation. I've just cloned the repository so I will have a look round. Do you have any idea what happens if animating on a crappy device, will frames be skipped? I'm basically using events to drive other bits of code and and wondering if there is a possibility that these events could be missed, or skipped over. The gotoAndStop(time or frame) would be a safety measure to force the animation to the correct frame when it has finished. Thanks |
Did you start the animation first? state.setAnimationByName(0, "animation1", true); |
Events wont be missed, that's for sure. |
That's great to know! |
I am starting the animation just not looping it
|
When animation is complete, tracks[0] will dissappear. Are you sure that tracks[0] is defined when you do that thing with time? |
Ok that will be what it is. I think maybe I'm being over cautious. If events will definitely fire and the animation will always show its final frame that should be enough. When I used another spine runtime with createjs in the past I had an issue with a frame not being shown correctly when stopping the animation. I would have to manually set the delta time to be sure. I haven't had anything like that with your stuff. Thanks for your help and your time. |
Posting the issue here is fastest way of finding solution for your problem :) Pixijs subforum on html5gamedevs: http://www.html5gamedevs.com/forum/15-pixijs/ |
Thanks Last question I promise :) Can you pause the animation via an event?
|
spine.autoUpdate = false; stops all animations. You can update them manually by using spine.update(dt); //dt is in millis |
Awesome thanks very much that is just what I need. |
Hi not really an issue just a question. Is there a way to jump to a specific time/delta. I'm looking in the AnimationState.js but can't see what to use.
Thanks
The text was updated successfully, but these errors were encountered: