Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Splankton on October 09, 2013, 01:41:42 PM

Title: how to make a simple countdown timer[SOLVED]
Post by: Splankton on October 09, 2013, 01:41:42 PM
Hi, how do I make a simple GUI countdown timer in minutes and seconds, that I can display and use to trigger events, such as when the timer reaches 10 secs, send an event to stop the timer for example.
Thanks for any help.
Title: Re: how to make a simple countdown timer
Post by: jeanfabre on October 10, 2013, 06:32:11 AM
Hi,

 It's easy. It requires tho a custom action to display the minutes and seconds easily.

http://hutonggames.com/playmakerforum/index.php?topic=1711.msg21716#msg21716

I have attached a package doing this. you define a time and a trigger and it will count down and stop at the trigger value.

bye,

 Jean
Title: Re: how to make a simple countdown timer
Post by: Splankton on October 10, 2013, 10:43:53 AM
Thanks again Jean! Its just what I'm after.
Title: Re: how to make a simple countdown timer[SOLVED]
Post by: wheretheidivides on May 22, 2014, 04:26:27 AM
I'm a bit of a newbee here.  How do you change the location, size, color and style of the text here.  I've tried everything and it's still just white at the top left of the screen.

Thanks
Title: Re: how to make a simple countdown timer[SOLVED]
Post by: jeanfabre on June 16, 2014, 03:16:21 AM
Hi,

 this text is a Unity GUI text, and to change colors and everything, you'll need to either:

-- make a specific Unity GUI skin  (http://docs.unity3d.com/Manual/class-GUISkin.html)
-- If on Unity 4, use rich text formating (http://docs.unity3d.com/Manual/StyledText.html)
-- else, change the color using the action "setGuiColor" and or "SetGuiContentColor", depending on all you'll want to achieve.

Bye,

 Jean