Posted September 21, 20223 yr I want a timer to count down. With "System.currentTimeMillis()" I can get the current time and use it for counting. But when I pause and unpause the game 5 seconds, the timer updates to 5 seconds later. Is there a way to get the real ingame time, so the time before and after the pause is the same?
September 21, 20223 yr If you have access to the `LevelData` (most likely through the `Level`), you can call `getGameTime` to get the current number of ticks that has passed since the save was first created.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.