how do i display 120 seconds like 2:00 minutes

guillefaceguilleface Member Posts: 1,014
edited August 2012 in Working with GS (Mac)
hi need my timer to count like this 2:00,1:59,1:58 etc instead of 120,119,118, thanks

Comments

  • hotMagichotMagic Member, PRO Posts: 266
    You can get the minutes by doing 120/60, so you get 2, and leave off the fractions, all you need is the whole.

    Get the seconds by doing mod which is %,

    So for example, if you have 118 seconds, 118%60 is 58.
    If you have 189 seconds, your seconds are 9.

    So display them as two variables, minutes and seconds, and calculate that way.
  • guillefaceguilleface Member Posts: 1,014
    thanks i will try this.
  • ZoytZoyt Member Posts: 374
    I worked for about 2 hours on making this for my own game and I succeded. I already have the template made. When I fix my website server, ill upload it for you.
Sign In or Register to comment.