carnwarth- ArrayDemoXML Formula1 lap
It sounds soo good but I'm totally novice I'm very grateful for the support and I have had troubklewith the size of the laps.
Let me tell you: At first I did all laps i 1 flash and got to the knowledge that I had to split it to lapby lap movies and load in levels. I have made an 80 lap movie in a high framerate and it was almost 50MB.
Think of flight simulator programs
lapdata[22] = new Array(62.5,60,60,57)
means car 22 did lap1 in 62.5secs then lap2 in 60secs then lap3 in 57secs
This is all just test data I created during creation of the scripting and your times would be substitutes lik this for cars 1 - 30
lapdata(1) = (laptime1,laptime2,.....laptime70)
lapdata(2) = (laptime1,laptime2,.....laptime70)
.
.
lapdata(22) = (laptime1,laptime2,.....laptime70)
.
.
.
lapdata(30) = (laptime1,laptime2,.....laptime70)
// you have the 4 laptimes there between the commas
// and lapdata for car14 is
lapdata[14] = new Array(68.5,67,69,67) * * * in a 3 lap race * * *
// soo I'm confused
It must be a speed velocity setting for travelling... It could be useful the whole thing you've done, if I only disregard the actual driving and want to show the relation/distance between the cars at all laps. (which always have been the case- to see the distance <
between the cars correctly)
<<< This could be done with more work...>>>
It will be fairly easy to add more arrays/travelpoints so that the cars go a little more on the tracklayout, i see, and yes with my stopwatch I can get things close to real-times ...
<<<yes >>>
What I really need to have implemented in what you've done would be to start a lap with up to 95 second gap e.g:
*car 22 starts its lap and runs it
*95 second later car 14 enters the lap (soon to be lapped by car 22) and runs it
* the lap should stop when leader of the race crosses the finshline or go automatically into displaying the next lap with the leader of the race and continuing with the other cars
<<<again.. yes this could be done...>>>
This could become a very cute program We need to design it correctly so please define what is required. Here are the first two 'rules'
Rule #1: Vehicles start a lap with up to 95 second gap from the previous starter and run (n) laps.
Rule #2: the lap should stop when leader of the race crosses the finshline or go automatically into displaying the next lap with the leader of the race and continuing with the other cars.
If you follow through the design based on what we know that an array can hold specific rows of data for a given car for a given lap, then we can extract the data at a specific time and point on a lap to either place a car or change one of its parameters.
A racecar or flight simulator holds similar rows of parametric data during its simulation for a flight right down to (and most importantly) engine parameters, so we are not exactly breaking new ground here but you can expect to program an exeedingly good simulation using 3dfa scripting.