playMaker

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

Splankton

  • Sr. Member
  • ****
  • Posts: 258
    • View Profile
how to make a simple countdown timer[SOLVED]
« on: October 09, 2013, 10:41:42 AM »
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, 10:40:07 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14210
  • Official Playmaker Support
    • View Profile
Re: how to make a simple countdown timer
« Reply #1 on: October 10, 2013, 03: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: 258
    • View Profile
Re: how to make a simple countdown timer
« Reply #2 on: October 10, 2013, 07:43:53 AM »
Thanks again Jean! Its just what I'm after.

wheretheidivides

  • Sr. Member
  • ****
  • Posts: 496
    • View Profile
Re: how to make a simple countdown timer[SOLVED]
« Reply #3 on: May 22, 2014, 01: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: 14210
  • Official Playmaker Support
    • View Profile
Re: how to make a simple countdown timer[SOLVED]
« Reply #4 on: June 16, 2014, 12: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