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!
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
http://www.deepblueapps.com/gs-racerz-template/
Darren.
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!