Bilge Posted January 28, 2015 Share Posted January 28, 2015 How do you get the real time elapsed since the last frame? Despite the fact that Phaser.Game has an entire object dedicated to time management (Phaser.Time), with its own slew of properties and methods, not a single one is dedicated to storing the previous frame time that's not marked as internal. It has frame render time (physicsElapsed) but this is independant of real time and not what I'm looking for. Link to comment Share on other sites More sharing options...
rich Posted January 28, 2015 Share Posted January 28, 2015 Time.elapsedMS (for Date.now based previous frame time) or Time.elapsed (for High Perf Timer based previous frame time) Neither are internal, but both are protected and shouldn't be modified at run-time. Link to comment Share on other sites More sharing options...
Bilge Posted January 29, 2015 Author Share Posted January 29, 2015 The docs claim `elapsedMS` is internal. Link to comment Share on other sites More sharing options...
Recommended Posts