First time here? First time here? Newsletter Signup Newsletter
Search tutorials
Author: monkey boy | Website: http://
Untitled Document


if you still have the fla. that has the parts covered in the first two tutorials then open that and open the the MC's for player one and two. Then delete the invisible button that with all the actions. then go to the action script for the MC named "player1" and replace the original actions with these ones

onClipEvent (load) {
moveSpeed = 10;
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)) {
_x -= moveSpeed;
if (Key.isDown(key.RIGHT)) {
_x += moveSpeed;
if (Key.isDown(Key.buttonname)) {
tellTarget ("_root.player1") {
if ((Key.isDown(Key.buttonname)) && (_root.player1.hitTest(_root.player2))) {
tellTarget ("_root.player1") {
tellTarget ("_root.player2") {
tellTarget ("_root.health2") {

Note: You will need to copy and past the bottom 2 "IF" statements for the amount of atacks your player's have. Also the buttons will have to be different for each player and Finally the "_root." will have to be changed round for each player e.g "_root.player1" becomes "_root.player2".

That's it we're done here. if you have any trouble with it then please e-mail me.

» Level Advanced

Added: 2005-09-21
Rating: 4 Votes: 1
» Author
british flash guy
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!
Featured Flash FLA
» Author: Inocreato
» Title: RaiseTheBlocks
» Description: Raise all the blocks to win the game
Featured Sound Loops
Image for equalize

Audio Player

» Author: TomCat Carty
» Title: The Wood
» Description: Just a little game ending or it can maybe be looped. Recorders with music box and percussion to give the feel of well, I don't know, the woods? Free to use, just credit me. thank you
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: Davisigner
» Description: Hmm... what to say about this one? It's reminiscent of the closing notes of the opening music from the Three Stooges done in a church organ style with a closing cymbal crash. I'll give this one away gratis, but feel free to check out my free loops and potential upcoming license-mandated ones over in the respective part of Flashkit.