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.
- 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.
- if (_root.objectname.hitTest(_root.player1)) {
- tellTarget ("_parent.objectname") {
- nextFrame();
- _x += 50;
- }
- }
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 |
| Me |
| » Download |
| Download the files used in this tutorial. |
| Download (0 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!