Search tutorials
4. Making the health bar:
Make a movie clip. name the instance "Health". inside that movie clip, make a bar. put the fill-in on another layer. make lots of keyframes, and on each keyframe, make the heald go down a bit. Its easier if you use motion tween. on the first frame, put these actions in:
stop();
and on the last frame, put these actions in:
tellTarget ("_parent.") {gotoAndStop("loose");}
Go into the enemies properties, and put these actions in right when the weapon or something hits you:
tellTarget ("_parent.Health") { nextFrame (); }
| » 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!