Skip to content
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

MovieClip timescale #47

Open
Ch1pStar opened this issue Jun 5, 2017 · 3 comments
Open

MovieClip timescale #47

Ch1pStar opened this issue Jun 5, 2017 · 3 comments

Comments

@Ch1pStar
Copy link

Ch1pStar commented Jun 5, 2017

Is this functionality supported at the moment, I didn't find anything that would indicate so in the code?
If no, do you have any plans for adding it in the future?
I'm currently working on a project that would almost certainly require this and I imagine it would be useful for others as well.

@bigtimebuddy
Copy link
Member

bigtimebuddy commented Jun 5, 2017

MovieClips have a framerate which is independent (but defaults to the root stage or parent's framerate upon construction). This can be changed to adjust the playback rate of the clip:
http://jiborobot.github.io/pixi-animate/PIXI.animate.MovieClip.html#framerate

Is this what you were looking for?

@Ch1pStar
Copy link
Author

Ch1pStar commented Jun 6, 2017

@bigtimebuddy Thanks, I totally overlooked the framerate property! A small issue is having to set the framerate of each movie clip separately(I can't set a framerate for the entire stage), but its not a problem for me right now.

One difference with the TweenMax timescale though, is there is no interpolation between key frames. Say an animation is created with 60fps and we set the animation to 30fps, the empty frames could interpolate between the previous and next key frames so that the animation is not choppy.

@bigtimebuddy
Copy link
Member

That is correct. PixiAnimate exports discrete frames of animation so loss-less interpolation (like with TweenMax) is not possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants