playMaker

Author Topic: how to make a simple countdown timer[SOLVED]  (Read 8563 times)

Splankton

  • Sr. Member
  • ****
  • Posts: 268
how to make a simple countdown timer[SOLVED]
« 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.
« Last Edit: October 10, 2013, 01:40:07 PM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: how to make a simple countdown timer
« Reply #1 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

Splankton

  • Sr. Member
  • ****
  • Posts: 268
Re: how to make a simple countdown timer
« Reply #2 on: October 10, 2013, 10:43:53 AM »
Thanks again Jean! Its just what I'm after.

wheretheidivides

  • Sr. Member
  • ****
  • Posts: 496
Re: how to make a simple countdown timer[SOLVED]
« Reply #3 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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: how to make a simple countdown timer[SOLVED]
« Reply #4 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
-- If on Unity 4, use rich text formating
-- else, change the color using the action "setGuiColor" and or "SetGuiContentColor", depending on all you'll want to achieve.

Bye,

 Jean