Count Up Timer Code Question

wayback_gamerwayback_gamer USMember, PRO Posts: 124

How can I display the minutes I am counting and separate them with a colon with this timer? Please see attached image for current code that displays seconds and resets to 0 every 60 seconds and adds 1 to a counter variable which will be the minutes. I want to display the minutes text and separate them with a colon from the seconds.

Best Answer

  • zweg25zweg25 Posts: 738
    Accepted Answer

    @PureEpicStudios‌ if you are using display text, just use the "padInt" function. You would display text padInt(game.minutes,2)..":"..padInt(game.seconds,2).

    This means no matter what the number is it will always display at least two digits

Answers

Sign In or Register to comment.