Son of Bryce Posted October 1, 2013 Share Posted October 1, 2013 Hello ya'll! Is there a way to directly set how fast the framerate should be? I figure there should be a "fps" variable that I could set to determine how often the update function gets called. Is that the case? Thanks! Link to comment Share on other sites More sharing options...
Pedro Alpera Posted October 1, 2013 Share Posted October 1, 2013 You can read the FPS rate here: game.time.fpsBut I think you can't set it. However you can set FPS in animations, look at the "sprite sheet" example: http://gametest.mobi/phaser/examples/animation/sprite%20sheet.php // And this starts the animation playing by using its key ("walk") // 30 is the frame rate (30fps) // true means it will loop when it finishes mummy.animations.play('walk', 30, true); Son of Bryce 1 Link to comment Share on other sites More sharing options...
Son of Bryce Posted October 21, 2013 Author Share Posted October 21, 2013 Thanks Pedro! Is this correct that there's no way to set the FPS? If that's the case, is there a time variable to use for determining how long it's been since the last frame? I'm trying to figure out how to account for the differences in playback on a desktop and mobile. Link to comment Share on other sites More sharing options...
Recommended Posts