PDA

View Full Version : Lap counter for a racing game


davise
10-09-2009, 08:33 AM
I am doing a school project and i have a boat racing game. To finish it i need to know how to make a lap counter for every time the boat passes the starting line. If someone could explain to me how to do that i would greatly appreciate it.

x2495iiii
10-09-2009, 07:04 PM
You'd need a 3d text, a number variable, and some way to register when the boat completes a lap (like a marker that it has to get close to).

Write a method so that when the boat passes the marker, the variable increases by one (increments) and the text sets it's "text" property to the variable as a string (the "What as string" function is under the world's functions).