First time here? First time here? Newsletter Signup Newsletter
Login | Register | 651326 Members and growing!
Search tutorials
Author: Ownage Productions | Website: http://c.1asphost.com/finarial2/

Fighting Game Tutorials part 1!

Note: Fps:30-50

Step1 Open flashh

Step2 Draw a stickman. Click on it and press F8 and make it a movie clip Instance name it player1

Step3 Double click on it and on the first frame of its timeline put in these actions
stop();

Step4 Next inside of player1 insert one frame and draw a square, make it a movie clip in the same way as Step 2. Instance name it hit. Set its alpha color to 0%.

Step5 inside of the player1 movie clip start animating a punch on frame 2

Step6 on each different frame of the punch animation move the hit square movie clip to the tip of the player1’s fist. ”This is used as a box to know when the fist hits the opponent’s body and brings down the opponents health”

Step7 put these actions at the end of this animation
gotoAndStop(1);

Step8 Insert 1 more frame and label it falls in the player1 movie clip. Then insert 2 more frames and delete the hit square on each of these frames. Animate a falling back action as if you just got hit.

Step9 go back to frame 1 of the player 1 movie clip. Lasso the drawn stickman and make it a movie clip put in these actions.
Step10 onClipEvent (enterFrame) {if (Key.isDown(Key.DOWN)) {_parent.play(); } }

Step11 Go back to the main timeline and put these actions into the player 1 movie clip.
onClipEvent (enterFrame) { if (Key.isDown(Key.LEFT)) { this._x -= 5; _xscale = -100; } if (Key.isDown(Key.RIGHT)) { this._x += 5; _xscale = 100; } }

If you have any questions email me at Masta_Elda@juno.com My site will soon be back up it is currently under construction Old site: http://c.1asphost.com/finarial2/ (Or take a look at the download file to see what it should look like

» Level Intermediate

Added: 2006-07-27
Rating: 4.39 Votes: 38
(10 being the highest)
» Author
13 yr old Flash Masta!!!! level 39 night elf hunter!!!!
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!

Comments

  • There are no comments yet. Be the first to comment!

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.
Featured Flash FLA
» Author: work2survive
» Title: Girl Walking 1kb
» Description: Walking girl, animation just takes 1kb, using high heels shoes, and fashion model attitude.
Featured Sound Loops
Image for equalize

Audio Player

» Author: BoxCat
» Title: CPU Talk
» Description: From the cyberpunk RPG, "Nameless: the Hackers" Completely Free to use! Keywords: edm hip hop rap electronic mysterious mission hacking chase exciting spy ios ambient chilling love happy sad angry suspense
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: nathan
» Description:

A recorded sound of the Dimensional Fork Gate.