-
Notifications
You must be signed in to change notification settings - Fork 33
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
having issues setting framerate #54
Comments
Actually I do see an issue in my test here. In my test app I have a button that will double the fps, from 30 to 60 to 90 to 120. It stops at 120. if I press the button, as many times as I like, before triggering the timeline animations, it play as expected. Everything works! However... if I play the movieclip animation and, either during the animation or well after it has stopped, I then press my double speed button. In this case, where the animation has played already, pressing the speed button will break the animation. The transitions are no longer timed properly with the fps, and then do not animate properly any more. Is there an update call I need to do or something for the timeline animations to be updated in this case? |
There is currently no API for dynamically changing the Right now, the One thing to note, if you are changing |
oh, well this is interesting then. _timedChildTimelines is always empty in my project, both before and after triggering the animation |
Could you possibly make a jsfiddle or upload a version of what you're building? It would be useful to see what's breaking. |
I will when I have a bit of spare time, as I don't actually require runtime framerate changes just yet. I was just reporting a bug for the most part. |
I tried to make a JSFiddle today, but I got stuck trying to provide the shapes.json file. do you have an example for showing a published scene in JSFiddle? |
Hello,
I am trying to experiment with the
framerate
property, but I can't seem to change the framerate.upon reading the docs, I see that it mentions 'This feature is dependent on the tick event object (or an object with an appropriate 'delta' property) being
passed into {{#crossLink 'Stage/update'}}{{/crossLink}}.`, which is the same comment from CreateJS's MovieClip class, here: http://www.createjs.com/docs/easeljs/files/easeljs_display_MovieClip.js.html
It's confusing that the comment is the same between pixi-animate and createJS, is this intentional?
so, since nothing I have done seems to change the framerate of my clips, I assume that I'm not passing the delta into the stage/update method, is there an example someplace of this working I could reference?
[UPDATE] I was able to increase the framerate, but I need to set
clip.framerate
recursively across all children.thank you
The text was updated successfully, but these errors were encountered: