System Time CountDown

games4fungames4fun Member Posts: 185
edited June 2012 in Working with GS (Mac)
Hi,

What I'm trying to do is have access to the system time and have a time set up that will be visible to the player that will countdown the time left till the event I create. So basically I want a countdown timer that counts down each second from 15 minutes to 0. When the time reaches 0 it will trigger a rule. However it will need to have access to the system time so if someone closes the app and comes back 10 minutes later it shows only 5 minutes left. Anyone have any idea on how accomplish this?

Thanks

Answers

  • lukey5227lukey5227 Member Posts: 111
    When you open to access an attribute, you can go to Devices > Clock

    This has the second, (maybe millisecond) minute, hour, day, month, and year. When the user clicks "Start", take the time they entered in and subtract it by the time it is at the moment.

    - 5227
  • games4fungames4fun Member Posts: 185
    So if I want a 15 minute countdown timer I will need it to access the system clock time and then also have a constrain attribute that constrains time to current system clock time. Then subract the 2? How will I be able to have it count by the seconds and show in minutes and seconds format.

    When I tried making the timer what started happening was when I would close the app and open it would start at the time I closed it and not at what time it should have been. So I had a 15 min timer that I let start and after 1 minute I closed the app and waiting a few minutes and came back and it started counting down from 14 minutes and not the 12 minutes or so it should've been at the time. Any ideas on why?

    Thanks
  • games4fungames4fun Member Posts: 185
    Is there any good videos to show how to use the system time "device time" to set up time counters to change attributes.
  • games4fungames4fun Member Posts: 185
    Anyone know whats wrong with my rules that when I use the system timer it doesn't update game attribute when closing and opening the app after a few minutes. I currently have it update the game attribute after ever 20 seconds but when you close the app and open it it doesn't pick up at what the attribute should be so if i wait 1 minute after closing the app and open it, the attribute should change to whatever it is plus 3. I included my file below. Any help would be appreciated. Thank you

    http://www.sendspace.com/file/na5vpd
  • games4fungames4fun Member Posts: 185
    Has anyone created a countdown timer for the device clock yet?
Sign In or Register to comment.