A Flash Developer Resource Site














Internet Commerce

Partners & Affiliates














Developer Channel

internet.com


Featured Flash FLA
Gallery Downloads 11211 Flash Movies | 9 New Flash Movies Added
What's New | Top 100

Featured FLA

» Author: jacek14
» Title: Clouds
» Description: Cloud-bank generated across attachmovie, placing perspectives, speeds, alpha, quantities of clouds, angle speeds.
» More by jacek14


Random FLAs | Add Flash Movie
Featured Flash Site
Gallery Downloads 6569 Flash Sites | 4 New Flash Links
What's New | Top 100 Flash Site

Featured Site

» Posted in the Flash Kit Links section
» Title: Indigo Art Gallery
» Comments: Indigo, a Norfolk, VA based art gallery and studio


Random Links | Add your own Flash Related Links
Flash Tutorials 1170 Tutorials 7 New Tutorials Added!
What's New | Top100

» Create Graduation Photo Slideshow to Cherish School Memories
» Making movieclips point at the mouse
» Create Flash slideshow for Youtube
» Move a sprite with the keyboard
» Convert FLV to AVI video with DIVX codec to author a desired video with your favorite FLV movie!
» Flash Video Conversion Guide for Apple TV
» How to Convert FLV to iPhone movies
» Convert FLV(Flash Video) video to Cell Phone
» Convert FLV to AVI with XviD video codec to enjoy a DVD quality video with half of its size
» Unknown Tag: Title10
Random Tutorial | Add Site

bbm.netBBM.net is designed to save you time and deliver the highest quality royalty-free music for your multimedia projects. Features include: over 450 Music Loop Packages from some of the best composers in the business, our music search engine to speed your selection process, alternate music versions & bonus sounds to use for rollovers or transitions, free technical support and free consulting.

Click here for details »

Flash Designer for Interactive Ad Agency
Aquent
US-CA-San Diego

Justtechjobs.com Post A Job | Post A Resume


Tutorials Home What's New Top Rated Submit myTutes Random!

Search Tutorials


Tutorials Tutorials » Games

Categories Location Damage
Author: Barbeaulex

 
Page 1
1

Location damage : If your guy gets shot in the head, he bleeds from the head. If he gets shot in the chest, he bleeds from the chest. etc.

Ok, first thing, i've been doing flash since october so i'll explain it so that everyone can understand and to make it easy for everyone, do exactly what's written now and modify it AFTER you're done.

1. Creating Life Alright, start by naming your first layer enemy. In "enemy", draw two seperate body parts : the head and the body and convert both these drawings into ONE graphic symbol.

2. Making the buttons Copy the head, convert it into a button symbol and use the alpha modifier (Windows> Panels> Effect), turn it down all the way to make it invisible. Do the same for the body. Take the head button to a new layer called head button and the body button to another new layer called body button. Original, no? Then, align the buttons on the real enemy.

3. OOPS... I fell...again Go back to the "enemy" layer and on the 1st frame, put a stop action. In frame 2 to 5, make the guy fall and in frames 5 to 10 make him lie on the ground (you will see why later). Copy frame 2 and past it, always in the same layer, on frame 11 and remove the action. In frames 12 to 15, make him fall...again and lie on the ground until frame 20...again.

4. Let's get dirty Now it's tim to add the blood. hehehe. Be as graphic as you like, i don't mind. All i did was create a new layer called blood and in frames 5 to 10, i drew a puddle of blood getting bigger around the head. VERY IMPORTANT : in frames 5 to 10, the blood must be on the head. Next, on frame 10, put a stop action and make a reset button making it start over from frame one. In frames 15 to 20, draw another bloody scene around the body this time and on frame 20, put a stop action and make a reset button making it start over from frame one.

5. Making it happen If you tested it now, you realize that it doesn't work (duh). That's why i kept this step last. Go the the head button frame and put the following actions on the button :
 on (release) {
 gotoAndPlay (2);
 }
Now on the body button, type in the following code:
 on (release) {
 gotoAndPlay (11);
 }
6. Crosshair (optional...options are good...) Make a new layer called crosshair and and draw a crosshair only in frame one. Make it a movie symbol and put in the following actions :
 onClipEvent (enterFrame) {
 Mouse.hide();
 }
 onClipEvent (load) {
 startDrag ("", true);
 }
And voila, you've got a simple yet effective way of giving your games location damage, making the game more fun for the user and more rewarding to you. Now that you have this info, you can change or modify it to as many body parts as you want. If this doesn't work for some reason, e-mail me and i'll help you the best i can.

Best of luck to you all.

1

» Level Basic

Added: : 2004-01-23
Rating: 5.30 Votes: 60
Hits: 731
» Author
most of the time, i'm on MSN with the same e-mail
» Download
Download the files used in this tutorial.
Download (0 kb)
Get conversion and unzipping tools for PC and Mac here!

» Forums
More help? Search our boards for quick answers!

Please rate this tutorial, 10 is the top rating, you can also click the comments link to read/write a review.
10 9 8 7 6 5 4 3 2 1
Read or Post Comments
 
   
 



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers