A Flash Developer Resource Site














Internet Commerce

Partners & Affiliates














Developer Channel

internet.com


Featured Flash FLA
Gallery Downloads 11303 Flash Movies | 7 New Flash Movies Added
What's New | Top 100

Featured FLA

» Author: VICENTE VERGARA SILVA
» Title: JORGE ASBUN BOJALIL WEBSITE INTRO
» Description: THIS IS BRIEF A 3D INTRO MADE IN 3D MAX STUDIO FOR A PERSONAL POET WEBSITE. ENJOY.
» More by VICENTE VERGARA SILVA


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

Featured Site

» Posted in the Flash Kit Links section
» Title: 3D Jobs
» Description: Free job forum for jobs in Films, Video Games, Multimedia and jobs in flash animation and scripting.


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

» Make flash video player for broadcasting live streaming video / TV on website
» How to convert the project file of Flash Demo Builder 2.0 into FLV file
» FLV to PSP for Mac - How to convert YouTube video to PSP on mac
» How to Convert FLV to MP4 for Playback on iPod
» how to download and convert youtube video to AVI with Leawo Free FLV converter
» Flash Multi-player Game Tutorial - TicTacToe
» How to make Flash elearning tutorials with screen recorder?
» Fader API:Slideshow with MovieClips on stage
» How to convert MS PPT file into an FLV File
» Unknown Tag: Title10
Random Tutorial | Add Site

Network Design Manager
The Computer Merchant, Ltd
US-VA-Hampton

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.27 Votes: 62
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