The fighting game! Revised

[SIZE=3]The fighting game! Revised.[/SIZE]

[SIZE=3]Brought to you by ownage Productions.[/SIZE]

[FONT=Times New Roman][SIZE=3]2 Player Fighting Game Part 1 –[/SIZE][/FONT]

[FONT=Times New Roman][SIZE=3]Fps:30-50[/SIZE][/FONT]

[FONT=Times New Roman][SIZE=3]Step1 Open flash[/SIZE][/FONT]

[FONT=Times New Roman][SIZE=3]Step2 Draw a stickman on the left side of the screen. Click on it and press F8 and make it a movie clip Instance name it player1[/SIZE][/FONT]

[FONT=Times New Roman][SIZE=3]Step3 Double click on it and on the first frame of its timeline put in these actions stop();[/SIZE][/FONT]

[FONT=Times New Roman][SIZE=3]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%.[/SIZE][/FONT]

[FONT=Times New Roman][SIZE=3]Step5 inside of the player1 movie clip start animating a punch on frame 2[/SIZE][/FONT]

[FONT=Times New Roman][SIZE=3]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”[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]Step7 put these actions at the end of this animation gotoAndStop(1);[/SIZE][/FONT]

[FONT=Times New Roman][SIZE=3]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.[/SIZE][/FONT]

[FONT=Times New Roman][SIZE=3]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.[/SIZE][/FONT]

[FONT=Times New Roman][SIZE=3]onClipEvent (enterFrame)[/SIZE][/FONT]
[SIZE=3][FONT=Times New Roman]{if (Key.isDown(Key.DOWN))[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]{_parent.play();[/FONT][/SIZE]
[FONT=Times New Roman][SIZE=3]}[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]}[/SIZE][/FONT]

[FONT=Times New Roman][SIZE=3]Step10 Go back to the main timeline and put these actions into the player 1 movie clip.[/SIZE][/FONT]

[FONT=Times New Roman][SIZE=3]onClipEvent (enterFrame) {[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]if (Key.isDown(Key.LEFT)) {[/SIZE][/FONT]
[SIZE=3][FONT=Times New Roman]this._x -= 5;[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]_xscale = -100;[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]}[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]if (Key.isDown(Key.RIGHT)) {[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]this._x += 5;[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]_xscale = 100;[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]}[/FONT][/SIZE]
[FONT=Times New Roman][SIZE=3]}[/SIZE][/FONT]
this is what is hould now look like!:

http://zerghelp.com/fight1.swf

[FONT=Times New Roman][SIZE=3]If you have any questions email me at [/SIZE][/FONT][U][FONT=Times New Roman][SIZE=3][COLOR=#0000ff][email protected][/COLOR][/SIZE][/FONT][/U]
[FONT=Times New Roman][SIZE=3]My site will soon be back up it is currently under construction[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]Old site: [/SIZE][/FONT][FONT=Times New Roman][SIZE=3][COLOR=#0000ff]http://c.1asphost.com/finarial2/[/COLOR][/SIZE][/FONT][FONT=Times New Roman][SIZE=3] if you liked this tutorial[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]Check out my site Thanks.[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]- part 2 coming very soon[/SIZE][/FONT]