Pixi.js: MovieClip animation timing => fps

Created on 30 Jul 2013  ·  3Comments  ·  Source: pixijs/pixi.js

Hello,

Impossible to control my timing on a 3 frame animation witch I want slow ( 4fps : 4/60 ) with animationSpeed property, when I setup it to : 4/60 it play super fast.

Also I dont find in the doc the normal fps, we only have an animationSpeed property on 1.

When I anim I need something like myanim.fps=12 and the doc need to be a bit more clear : default value 1 & 1 == 60fps.

Thanks

🤔 Question

Most helpful comment

The animation speed is in frames per animation frame, the default is 1 which will display one frame of your animation every frame of the application (so if it is set to one, you will flip through _framerate_ frames in one second). By setting it to 3/60 you are saying you want framerate*(3/60) frames in 1 second. With a framerate of 60 that works out to be 3 frames every second. Does that help clear up what you are looking for?

All 3 comments

The animation speed is in frames per animation frame, the default is 1 which will display one frame of your animation every frame of the application (so if it is set to one, you will flip through _framerate_ frames in one second). By setting it to 3/60 you are saying you want framerate*(3/60) frames in 1 second. With a framerate of 60 that works out to be 3 frames every second. Does that help clear up what you are looking for?

Closing for now due to lack of activity

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings