Realistic Car Controls Game Component

Realistic Car Controls Game Component (drag and drop movieclip)

Files included:
– assets (car.png)
– carControls.fla
– carControls.swf
> 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:
– acceleration
– maxSpeed
– maxReverse
– rotSpeed (the amount the car turns when you press the left and right keys)
– friction

The code is commented to help you further.

Note this is coded in AS3 . Flash CS3 or higher required.

All ChristianKragh’s files
General FAQ

Please rate!

Subscribe to my items RSS feed

Visit ChristianKragh.com

Featured from ChristianKragh:
Bunker Defense: Swarm of the Infected Flash GameUnlimited XML Tree MenuUltimate Banner Rotator

CK's Site Templates CK's Galleries CK's Image Viewers CK's Menus CK's Other/Misc CK's Games

CK's Music CK's Electronic Music CK's Music for Games CK's Piano Music CK's Rock Music CK's Inspirational Music

by
by
by
by
by
by