car racing - Record 1st & 2nd place same time issue

Hi Guys,

I'm creating a simple car racing game, when a var car left is to help in recording 1st place, 2nd place & 3rd place timing of the car finish the finishing line.

1st place record if var car left is 3, one car pass by the finishing line, the var carleft from 3 become 2.
it spawn a new actor displaying 1st place timing,

then if var car left is 2, it will record 2nd place timing and change var carleft to 1 etc.

But the issue I'm having now is when the 1st car pass by, the game record 1st and 2nd place together. I think it's because when the car still passing by the finish line, var carleft is 2, so it record the 2nd placing.

I tried to solve by the timer, by giving a delay like say 0.1 s then it update the car left but the timer in GS didn't work at all.

Any advice?

Thanks in advance!

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    I made this a while back but can look into the logic when I'm back in the office as it always sorts out 1st, 2nd etc without hiccups

    http://www.deepblueapps.com/gs-racerz-template/

    Darren.
  • greenturtlegreenturtle Member Posts: 22
    I made this a while back but can look into the logic when I'm back in the office as it always sorts out 1st, 2nd etc without hiccups

    http://www.deepblueapps.com/gs-racerz-template/

    Darren.
    Thanks @DeepBlueApps,

    Does it record the time each car pass the finish lap line too?
    Or rather can i tweak it from there?

    Because gamesalad doesn't have sort function.

    Thanks!
  • kinzuakinzua Member Posts: 554
    you can always do that on your own. I have this template from DBA and its very easy to customize. GS gives you the brushes, you'll have to paint your own picture.
Sign In or Register to comment.