Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: realrobo on November 07, 2016, 10:39:40 AM

Title: Convert int to Time Span
Post by: realrobo on November 07, 2016, 10:39:40 AM
Hello,
I am looking to convert a countdown(int) to display as time span.  Could anyone help me how I should go about it?
Any help would be appreciated.
Title: Re: Convert int to Time Span
Post by: djaydino on November 07, 2016, 12:26:03 PM
Hi,
maybe you can use the custom action "countdown timer"
You can find it on the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181)
Then to display you can use the action "float to string" and in format you can set '0' for only seconds.
then you can display the string.

if are using the canvas you should get the "ugui proxy full' on the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181)
and use the action ugui text set text to display the seconds.