First time here? First time here? Newsletter Signup Newsletter
Search tutorials
Author: Monkey boy

Let's get started

we're going to make an interactive arenafor the players to fight in.

firstly Load up the Fla file from the last tutorial and insert a layer under the first layer on main timeline. Call the layer "background" now draw the setting for your arena e.g streets, boxing ring, ect. Then convert it to a graphic.

now create a movie clip. This is going to be an obsticle that will add extra dammage to the player that collides with it. in the movie clip create three key frames. in the first one draw your object normal no. in the second frame draw the same object but slightly damaged, and leave th third key frame blank.

  1. stop();

If you want you can add more key frames to make the damage more realistic.

What does it all mean?

now place an instance of this movieClip to the Background layer so it looks like it is part of the screen. then give an instance name suitable to the object e.g. phone and give your player the instance name "player1"

now add this code to the player movie clip.

  1. if (_root.objectname.hitTest(_root.player1)) {
  2. tellTarget ("_parent.objectname") {
  3. nextFrame();
  4. _x += 50;
  5. }
  6. }

Note: words in italic need to be changed to the instance name that you gave to your object.

forgeting something

I know that I said that I will tell you about damage and hitTest. well I lied about the Damage. That will be in the final tutorial that will be comming soon.

If you have any questions for me about any of this. you will also have to wait for the third tutorial when everything will be explained.

» Level Basic

Added: 2005-01-28
Rating: 7 Votes: 6
» Author
» 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.