A Flash Developer Resource Site

Results 1 to 12 of 12

Thread: carnwarth- ArrayDemoXML Formula1 lap

Threaded View

  1. #3
    Senior Member
    Join Date
    Mar 2003
    Posts
    136
    Here is my solution to your request using arrays.

    You need to do two two things to customize it for your own program.
    Make your Grand Prix background be a button and use it to exactly map your track layout starting on the Finish Line and going around the track in 32 equal steps, clicking on the red track. My demo program here does just that but you need to do it using your actual layout, and also for other tracks like UK, Germany etc.

    The program is smart enough that when a racecar completes a lap it gets its new(future) laptime and that sets the speed for the next lap for that car. You can see it in the lower straight track which is used to calculate where it should appear in the circular track.

    I am quite pleased with the result technically and as you can see I chose to use the colored number decals for each car rather than just a number, the car actually being a button with a color and a number.
    Button shading techique and other graphics could be employed here too.
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center