Riddik Posted March 7, 2015 Share Posted March 7, 2015 Hi. How i can reach the same physics speed regardless by fps on mobile and pc? I set:sprite.body.velocity.x = 200;and this sprite moves with different speed on pc and mobile devices. Please, tell how to fix this? Link to comment Share on other sites More sharing options...
qdrj Posted March 7, 2015 Share Posted March 7, 2015 Common practice is to use elapsed time. Smthng like this:sprite.body.velocity.x = 200 * game.time.physicsElapsed;But instead of 200 you should use much lower value ~200/16 Link to comment Share on other sites More sharing options...
Riddik Posted March 7, 2015 Author Share Posted March 7, 2015 Ok, thanks a lot! Link to comment Share on other sites More sharing options...
Recommended Posts