(Solved) Game Time Countdown

Hello.
I’m creating a game where you have 30 seconds to solve a puzzle.
I’m creating an event that shows 30 seconds decreasing by 1 second, but it’s counting down from the start of the game. I want the countdown to start after the card is turned over.

And then 30:00, 29:59, 29:58, 29:57… How can I express it in milliseconds(?)?


change the text of Timer to “30 - playTimer of Timer”. if you set it to gametimer, it’ll show time of the whole game

1 Like

To answer/fix both your questions:

  1. Remove that last event in your screen shot.
  2. Modify the changing of Timer text to “Change the text of Timer: set to roundTo(30 - Timer.ObjectTimerElapsedTime("Timer"), 2)
1 Like

The timer is working fine. But the timer digits are shaking like someone with a cold. Why?

Because they’re updating so fast, around 60 times per second. And most likely the font you use has different widths for numbers like 1 & 0, meaning their alignment is constantly changing.

One solution would be to use a fixed width font.

Another solution is to use 3 text boxes - one for the seconds and semi-colon, one for the tenths digit and one for the hundredths digit.

And another solution is to use sprites for the digits and then calculate each digit and it’s corresponding sprite.

1 Like

I understood. Thank you.