User Tag List

Results 1 to 6 of 6

Thread: Spreading health bars on enemies

  1. #1


    Join Date
    Sep 2009
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Spreading health bars on enemies

    For each one of my enemies i create a health bar.
    If the bullet of the player collides with the enemie, his health bar changes direction.
    I didnt found a function to spread the counter aswell.


  2. #2
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Spreading health bars on enemies

    What you should do is store the ememies health in one of his alterable values. Then you subtract the ammount from that value whenever he takes damage.

    Then all you have to do is always set the counter to equal the health alterable value of the enemy. This also works for moving the counters so they follow the enemy.

    Example file is here: http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=161518&#Post161 518

  3. #3


    Join Date
    Sep 2009
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Spreading health bars on enemies

    *Solved*

  4. #4
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Spreading health bars on enemies

    You are welcome...........

  5. #5


    Join Date
    Sep 2009
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Spreading health bars on enemies

    Thank you very much for the example

  6. #6
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Spreading health bars on enemies

    lol no problem

Similar Threads

  1. Independent Health Bars
    By zwhuggins in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 31st December 2013, 03:04 PM
  2. Individual enemy health bars
    By Tabi in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 27th August 2012, 09:26 PM
  3. Health for Enemies
    By Pixzel in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 15th March 2011, 06:30 PM
  4. Enemy Health Bars for DriftingFable
    By LB in forum File Archive
    Replies: 0
    Last Post: 30th April 2010, 12:53 AM
  5. health bars
    By Typhoon in forum The Games Factory 2 - Technical Support
    Replies: 6
    Last Post: 8th December 2007, 09:03 PM

Posting Permissions

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