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

2 Player fighting Game tutorial! Part 2

Step1 Open the .fla file from the last tutorial.
Note: If you missed the last tutorial, view it here. http://www.flashkit.com/tutorials/Games/2_player-Ownage_P-1365/index.php http://c.1asphost.com/finarial2/

Step 2 Draw another stickman on the opposite side of the stage. Click on it and press F8 and make it a movie clip Instance name it player2

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

Step4 Next inside of player2 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 player2 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 player2’s fist.

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

Step8 Insert 1 more frame and label it falls in the player2 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 2 movie clip. Lasso the drawn stickman and make it a movie clip put in these actions.
onClipEvent (enterFrame) {if (Key.isDown(83)) {_parent.play(); } }

Step11 Go back to the main timeline and put these actions into the player 1 movie clip.
onClipEvent (enterFrame) { if (Key.isDown(65)) { this._x -= 5; _xscale = -100; } if (Key.isDown(68)) { 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/ if you liked this tutorial Check out my site Thanks.

» Level Intermediate

Added: 2006-08-09
Rating: 4.4 Votes: 10
(10 being the highest)
» Author
13 yr olf Flash Masta!!! level 40 night elf hunter! booyah grandma.
» 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: doc_chin7
» Description:

The flash's horizontal road drive was done in CS4 and was upgraded to CS6. The car responds to right/ left key and flash will auto-generate the movement of roads from left-right or right-left based on random number. Have fun driving in this virtual environment and avoid other cars... :) If you are creative, a road driving game can be created from it.

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.