Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: MarkD on June 04, 2020, 05:50:14 PM

Title: Countdown Timer in Minutes:Seconds [SOLVED]
Post by: MarkD on June 04, 2020, 05:50:14 PM
Hey folks, I need a count down timer in the form of minutes and seconds.  I was hoping to find one on the Ecosystem but unless I'm just failing at my search criteria, there doesn't seem to be one.

I can write an FSM to do it for me, but I was hoping for an action where I could just put in the minutes or seconds and it converts it for me into a string formatted by MM:SS.  Anyone know of anything out there that maybe I'm missing?
Title: Re: Countdown Timer in Minutes:Seconds
Post by: djaydino on June 05, 2020, 02:49:06 AM
Hi.
There is a Countdown Timer i made on the Ecosystem.
Store the result.

To display the way you wish to, use 'Convert Seconds To String' and set the correct format.
Title: Re: Countdown Timer in Minutes:Seconds
Post by: MarkD on June 05, 2020, 02:46:22 PM
This is perfect.  Thank you!
Title: Re: Countdown Timer in Minutes:Seconds [SOLVED]
Post by: Mulbin on May 11, 2023, 01:34:29 PM
Sorry to dredge this up but I've tried this, and I'm getting up to 99 seconds if I format the string as 00.00 ... how do I lock the string to work in blocks of 60 instead of decimals? Clocks/timers dont use decimals.
Title: Re: Countdown Timer in Minutes:Seconds [SOLVED]
Post by: djaydino on May 11, 2023, 01:43:01 PM
Hi.
divide by 60 i guess
Title: Re: Countdown Timer in Minutes:Seconds [SOLVED]
Post by: Mulbin on May 13, 2023, 03:41:06 PM
What use would that be? Dividing 100 seconds by 60, for example, wouldn't correctly turn it into 1m:40s it would give you 1.6666 minutes.. and thats not how clocks work.
Title: Re: Countdown Timer in Minutes:Seconds [SOLVED]
Post by: djaydino on May 13, 2023, 04:12:45 PM
Hi.
Sorry I misunderstood.
have you tried the action : Convert Seconds To String