Flash / AS

Blend / WPF
ASP.net / PHP

Photoshop

Forums
Blog

About
 
 

 

 

 

 

 
Controlling
and Accelerating an Object
         by tom aka novatake

You may have tried the game control tutorials on kirupa.com and found them to be a little difficult even with Kirupa's greatly simplified explanations. Well, this tutorial will show you how to create movement for a car with only the use of 1 component.

[ use your arrow keys or your keypad to turn and accelerate the car ]

Download the source file and the component required below. The source does not contain the loader you will create that yourself.

download flash source and extension (.mxp) file

You may have noticed the car is off GTA. This is because it is the only
birds eye view of cars I knew of. Firstly please download the source file from above. This will only include the car (for which you will put the controls in yourself), And also the component.

Before you can install the Extension file, you will need to get Macromedia extension manager 1.5 or later. Click here to download it. Make sure you install the Extension file using the Macromedia Extensions manager. Once you have installed the component open the source file and we can begin.

Once you have the above files and the Extension Manager downloaded, follow the directions to get your animation configured:

Once you open the fla file your flash stage should look like the following image:

[ your stage should look like above image ]

As you can see. the car is on its own. Open up the Components panel and click on the top of the panel to see all the components you have installed. Click on the
game controls. You will see that there are 4 options to keep it less complicated. Click the car controls and drag the icon onto the top of your car. The icon should snap onto place over the car.
 
To test out your movie, press ctrl+enter and use the arrow keys to drive. If you feel the car is a little slow all you have to do is click the little orange car controls icon and go to properties and increase the forward and backwards speed also if you increase the left and right controls to 10 the car will turn faster.

Note
Make sure the image/object you use to create the effect faces North. If your object is oriented in any other direction, you will find that the object you are trying to move does not turn properly when you press left/right/up/down keys. For example, pressing the left key might have the image facing up yet moving left. Strange, I know! Just make sure the image/object you is pointing north.

Hope this is helpful!

-Tom
http://www.typhoon-extensions.cjb.net
 


 

 


kirupa.com's fast and reliable hosting provided by Media Temple. flash components
The Text Animation Component for Flash CS3
Check out the great, high-quality flash extensions. Buy or sell stock flash, video, audio and fonts for as little as 50 cents at FlashDen.
Check out our high quality vector-based design packs! Flash Effect Components

Flash Templates
CSS Templates
Dreamweaver Templates

flash menus, buttons and components
Digicrafts Components The best flash components ever!
Entheos Flash Website Templates Free Flash Page Flip
flash components Buy and sell FLAs at Ultrashock!
Upload, publish, deliver. Secure hosting for your professional or academic video, presentations & more. Screencast.com create flash slideshow as easy as 1,2,3
Learn how to advertise on kirupa.com