Search tutorials
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 player1s fist. This is used as a box to know when the fist hits the opponents 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
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 player1s fist. This is used as a box to know when the fist hits the opponents 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
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 player1s fist. This is used as a box to know when the fist hits the opponents 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
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
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
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.76 Votes: 34 |
| » Author |
| 13 yr old Flash Masta!!!! level 39 night elf hunter!!!! |
| » Download |
| Download the files used in this tutorial. |
| Download (5 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


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