Racing timer help

ktfrightktfright Member Posts: 964
edited November -1 in Working with GS (Mac)
Can anyone help me out with making a racing timer for my lightspeed racer game?

it has to look like a timer that goes up, but with the min/sec/milisecond look to it like traditional racing games. i am having difficult setting it up. any tips?

Comments

  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Yeah, I too would love a downloadable project template that shows how we can make timer that shows mintues and seconds (and even milliseconds if it's possible).
  • firemaplegamesfiremaplegames Member Posts: 3,211
    i can whip one of those up in a little while...
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Thanks!
  • firemaplegamesfiremaplegames Member Posts: 3,211
    I made a quick one to show various ways to work with time:

    http://gamesalad.com/game/play/34021

    Joe
  • ktfrightktfright Member Posts: 964
    is there a way to start time when a race starts, and when it finishes save it for five levels? and do i need to make a new game.time attribute for all five levels? i'm acting so nub today :p
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Thanks, Joe! Looks great! Can't wait to dig into it and start using some of this in my games.

    p.s. my wife and I are huge fans of danger cats (and we're dog people!) ;-P
  • firemaplegamesfiremaplegames Member Posts: 3,211
    @ktfright: In the demo, there's a way to record the time with that toggle button. Just open up the Actor and you can see how it works. When the race starts, capture the start time, when it ends, subtract the startTime from the current time. That will be the time of the race. If you need to save five separate times, you'll need 5 separate global attributes.

    @scitunes: Thanks! Yes, Danger Cats! appeals to both types of people: ones who like save cats, and ones who don't mind seeing them fall into the ocean!
Sign In or Register to comment.