Realistic Car Controls Game Component (drag and drop movieclip)
– assets (car.png)
> com (CarControls.as)
– Instructions.txt (this file)
The car is a movieclip in the library which the CarControl.as code is attached to, so you can just copy the car movieclip from my FLA into yours and then copy the com folder into the same folder that you have your FLA in (or the CarControls.as file into your com folder). Then all you need to do is drag the car movieclip to the stage (any timeline)!
If you would like to change some values so that the car behavior is slightly different, you can open up the CarControls.as file and change the following:
– rotSpeed (the amount the car turns when you press the left and right keys)
The code is commented to help you further.
Note this is coded in AS3 . Flash CS3 or higher required.