First time here? First time here? Newsletter Signup Newsletter
Login | Register | 651326 Members and growing!
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
(10 being the highest)
» Author
Me
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!

Comments

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

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.
Featured Flash FLA
» Author: work2survive
» Title: Girl Walking 1kb
» Description: Walking girl, animation just takes 1kb, using high heels shoes, and fashion model attitude.
Featured Sound Loops
Image for equalize

Audio Player

» Author: BoxCat
» Title: CPU Talk
» Description: From the cyberpunk RPG, "Nameless: the Hackers" Completely Free to use! Keywords: edm hip hop rap electronic mysterious mission hacking chase exciting spy ios ambient chilling love happy sad angry suspense
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: nathan
» Description:

A recorded sound of the Dimensional Fork Gate.