Search tutorials
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 player2s 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.
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 player2s 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.
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 player2s 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.
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.
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.
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.58 Votes: 12 |
» Author |
13 yr olf Flash Masta!!! level 40 night elf hunter! booyah grandma. |
» Download |
Download the files used in this tutorial. |
Download (13 kb) |
» Forums |
More help? Search our boards for quick answers! |