how about having a distance counter for the line?
* Light turns red.
* Distance counter is set to zero.
* you would check if a car has reached this point
* if a car reached this point stop it!
* increase the distance counter by the length of the car plus some space to be between the cars.
* check if a car has reached this new point.
* keep doing this on any unstopped cars until the light changes green!
* have one distance counter for each light (use array).
just a thought!
By the way... screen shots look cool!
806mhz AMD Athlon Processor. 384MB memory.
Windows XP Home Edition. RADEON 9800 Pro graphics card. - editor.exe=1.0.6.1 - DBPCompiler.exe=V1.05