dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: making a health bar, making people die, and making a score thing-- please help!

  1. #1
    Junior Member
    Join Date
    Dec 2000
    Posts
    2
    hi! i am making a game where you shoot people who pop out of places and you shoot them. So far i made it so you can shoot them but when you do you dont get score.... I also need to know how you actually make someone die... when I try that they just pop out again!! and last how do I make it so when the guys shoot you your helth goes down?

    Thanks sooo much!!

  2. #2
    Senior Member Mad-Sci's Avatar
    Join Date
    Mar 2000
    Posts
    2,756
    Ok lest do it one by one:

    1. I asume that you made your guys to pop out randomly:
    2. I also asume that you click them with the mouse
    3. Make a button inside the bad guys.
    4. get the actions and put on press command gotoAndplay(3) for example or this is the frame where your death animation starts.
    Mad_sci

  3. #3
    Senior Member
    Join Date
    Jul 2000
    Posts
    198
    Have an animation in the character. When the animation reaches a certain frame, say the shooting frame, have it set a health variable, _root.health=_root.health-1. Then have an action in your character that checks to see if _root.health==0, then you guy will die.

  4. #4
    Junior Member
    Join Date
    Dec 2000
    Posts
    2

    i dont understand...

    what do you mean buy .root and stuff? if you can please tell me it more simply. I am pretty new to flash 5

  5. #5
    Senior Member
    Join Date
    Nov 2000
    Posts
    203
    _root means to go up one step. It's the same as "../".

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center