How do you make a health bar - Page 2
A Flash Developer Resource Site

Page 2 of 2 FirstFirst 12
Results 21 to 30 of 30

Thread: How do you make a health bar

  1. #21
    Junior Member
    Join Date
    Jan 2010
    Posts
    4
    it means he just "necroed" it bringing this post back to the top and yea im doing the same

  2. #22
    Script kiddie VENGEANCE MX's Avatar
    Join Date
    Jun 2004
    Location
    England
    Posts
    2,590
    Nice.

    Hm, Marmotte was pretty timid about his coding skills 8 years ago.
    http://www.birchlabs.co.uk/
    You know you want to.

  3. #23
    Junior Member
    Join Date
    Jun 2010
    Posts
    5
    not sure if this is comparable, but Im making a spot the difference game and I need a time bar, can I use something similair to the code of this health bar ? Of course it's not hittest related tho, but it should influence the score

  4. #24
    Senior Member bluemagica's Avatar
    Join Date
    Jun 2008
    Posts
    766
    You can use this:http://blog.bluemagica.com/?p=11
    just create it with the maximum time, and then update with the time remaining value.
    If you like me, add me to your friends list .

    PS: looking for spriters and graphics artists for a RPG and an Arcade fighting project. If you can help out, please pm me!

    My Arcade My Blog

    Add me on twitter:

  5. #25
    Junior Member
    Join Date
    Jun 2010
    Posts
    5
    looks cool, thanks

  6. #26
    Senior Wabbit
    Join Date
    Jul 2008
    Location
    Winchester, Uk
    Posts
    215
    Wow its nice to look back seeing how much progress I have gone though looks like I might get stuck on the forums again

    Trust my code, and not my english.

  7. #27
    Banned
    Join Date
    Dec 2012
    Location
    10884 Santa Monica Boulevard, 3rd Floor Los Angeles, CA 90025
    Posts
    1
    Just set up two distinct health variables for them - don't call the variable health, that is taken by default. To draw the health bar use different coloured draw_rectangle, or a sprite based health bar by drawing part of the image.

  8. #28
    Junior Member
    Join Date
    Dec 2012
    Posts
    9
    there are a few ways to make health bar.. my favorite:

    1. draw a long rectangle
    2. make it a movie clip
    3. tween the inside color to make it look like the health is decreasing..
    4. at the end of the movie clip where the health runs out.. tell it to go to "fail"
    5. at beginning.. tell it to stop.. or else it will just play and not work.
    6. where you code collisions and hits to your character.. tell the health bar movie clip to advance one frame..

    check out how it works in this game i made
    http://blueco.ws/ShootingGame

  9. #29
    Junior Member
    Join Date
    Dec 2012
    Location
    250 West 57th St., Suite #825, New York, NY 10107
    Posts
    1
    Just set up two distinct health variables for them - don't call the variable health, that is taken by default. To draw the health bar use different coloured draw_rectangle, or a sprite based health bar by drawing part of the image.

  10. #30
    Banned
    Join Date
    Dec 2012
    Location
    Los Angeles
    Posts
    6
    I can't understand...

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

Poll by Flashkit.com