2. Making the enemies:
Make a movie-clip. Inside the movie clip, andimate your enemy shooting you, or stabbing you, or whatever. on the first frame, call it "start1". on the last frame put these actions in:
gotoAndPlay("start1");
This is so it would loop the killing. The frame after he shoots, animate him dying. on the first frame of him dying, name the frame "dead". On the last frame, put this action in:
stop();
This is so it wont loop. Also if you want him to come stabbing you again, dont put that action in. Ok, now make a new layer. make this the top layer. copy & paste the "thing you shoot" onto the top layer. do not delete the "thing you shoot" at all. on the top layer, convert the other "thing you shoot" to a button. in the button, dont have anything in the "up" frame, "over" frame, or the "down" frame. Just have the body in the "hit" frame. get out of the buttons properties, and give the button this action:
on (press) {
gotoAndPlay("dead");
}
NOTE: dont have this button on the frame when he dies.
| » Level Intermediate |
|
Added: 2004-03-08 Rating: 5 Votes: 49 |
| » Author |
| A guy who likes to make games in flash. |
| » Download |
| Download the files used in this tutorial. |
| Download (2330 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!