oliversb Posted October 10, 2014 Share Posted October 10, 2014 The Phaser docs says this in the docs for the Animation class, 'Gets or sets the current speed of the animation, the time between each frame of the animation, given in ms. Takes effect from the NEXT frame. Minimum value is 1.'. Doesn't that the 'speed' in phaser is the duration between each frame and not the rate at which the animation is proceeding frames? Thanks Link to comment Share on other sites More sharing options...
rich Posted October 10, 2014 Share Posted October 10, 2014 Yeah the docs are wrong sorry, the Animation.speed value is the frame rate, not ms. Internally it converts whatever frame rate you give it to an ms value, but the actual setter expects a frame rate (i.e. "30" for "30fps"), not an ms value. Link to comment Share on other sites More sharing options...
oliversb Posted October 10, 2014 Author Share Posted October 10, 2014 thanks Link to comment Share on other sites More sharing options...
oliversb Posted October 10, 2014 Author Share Posted October 10, 2014 Glad it was just the docs and it was not programmed wrong. That would have been a nightmare. Link to comment Share on other sites More sharing options...
Recommended Posts