Time Table Number Array creation
The SpArray is a nested array of numbers
ie; #(#(0,1,2,3,4,5,6,…),...,#(0,5,10,15,20,…)...)
By creating this timetable, we can change the speed of the spider animation per walk cycle loop. At the beginning of each Walk Cycle Loop we have a start time variable called ThisStepTime. As we call functions to be completed on each leg group we will need to advance the variable ThisTime. ThisTime is used in every function as the current frame of activity. With each advance of time, we will reestablish ThisTime by adding ThisStepTime + SpArray[SpeedStep][TimeStep].

Ok, that’s confusing, just trace your eye the though the script to see how it works. The point of all this TimeTable Array business to allow us to always know when some thing is happen with a certainty and allow us to reuse looping code.

Page 4