spinnerbox Posted April 3, 2017 Share Posted April 3, 2017 I am converting a Unity game to a Phaser game and there is a field called Time.deltaTime which stands for how long the last frame has lasted: deltaTime Is there something similar in Phaser and how is it called? Link to comment Share on other sites More sharing options...
128p Posted April 3, 2017 Share Posted April 3, 2017 game.time.physicsElapsed Link to comment Share on other sites More sharing options...
wo997 Posted April 3, 2017 Share Posted April 3, 2017 @spinnerbox thanks to @lewster32: var deltaTime=0; update -> deltaTime = game.time.elapsed/1000; Tell me if it works spinnerbox 1 Link to comment Share on other sites More sharing options...
spinnerbox Posted April 3, 2017 Author Share Posted April 3, 2017 @wo997 Yes I found something like that. Now working on the timer. Once I have it running I will test the correctness of this statement. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts