User Tag List

Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 30

Thread: life bar?

  1. #1
    No Products Registered

    Join Date
    May 2009
    Location
    Southbridge MA.
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    life bar?

    how do you make a enemy have life

    and whats the easiest way to make a life bar appear ontop of an enemys head when hit with a Projectile (bullet)

  2. #2
    No Products Registered

    Join Date
    Feb 2009
    Location
    Texas
    Posts
    825
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: life bar?

    who do you mean have life?
    do you mean hp?

  3. #3
    No Products Registered

    Join Date
    May 2009
    Location
    Southbridge MA.
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: life bar?

    like after a certain amount of hits the enemy gets destroyed
    (a counter if you will. but visualy looks like a bar depleating)

  4. #4
    No Products Registered

    Join Date
    Feb 2009
    Location
    Texas
    Posts
    825
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: life bar?

    ok, counters can be numbers, animations, hidden, and text.

    Do you want the counter to be text or a scrolling bar?

  5. #5
    No Products Registered

    Join Date
    May 2009
    Location
    Southbridge MA.
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: life bar?

    a scrolling bar.

  6. #6
    No Products Registered

    Join Date
    Feb 2009
    Location
    Texas
    Posts
    825
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: life bar?

    ok, do you know the basics of mmf2. like alterable values, alterable strings, etc?

  7. #7
    No Products Registered

    Join Date
    May 2009
    Location
    Southbridge MA.
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: life bar?

    no. only like basic counter stuff and global counters but not that stuff

  8. #8
    No Products Registered

    Join Date
    Feb 2009
    Location
    Texas
    Posts
    825
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: life bar?

    ok can you tell me how your enemies get damaged?

  9. #9
    No Products Registered

    Join Date
    May 2009
    Location
    Southbridge MA.
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: life bar?

    start of frame
    -set counter to 5

    bullet colides with enemy
    -negate 1 from counter
    -destroy bullet

    counter = 0
    -enemy play animation death

    animation death has finished
    - destroy enemy


    thats what i have for the life system but how do i impliment a health bar above the enemy

  10. #10
    No Products Registered

    Join Date
    Feb 2009
    Location
    Texas
    Posts
    825
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: life bar?

    ok do this.
    This may sound a little bit complicated but do it in the exact order i tell you.

    Always: Set postion of counter to (wherever you want, probably somewhere above the enemy)

    Start of frame: Set Alterable Value 1 of enemy to 5

    Bullet Collides with enemy: Set Alterable Value 2 of enemy to (whatever the amount of hp it is decreased by)If alterable value 2 of enemy is greater than 0: Decrease counter by 1

    If Alterable value 1 of enemy equals 0: destroy (dying animation plays automatically

    Note: you will need to have the same number of counters as there are enemies. I am at school right now, so i cant test this, but most if not all of this should work

Page 1 of 3 1 2 3 LastLast

Similar Threads

  1. How to create a life bar?
    By gamer123 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 20th October 2011, 03:59 PM
  2. Getting Battery Life
    By KingToast in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 5th January 2011, 04:33 PM
  3. Drawn to Life
    By LBP08 in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 16th December 2010, 12:32 PM
  4. life counter below 0
    By slacer in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 14th September 2010, 09:09 PM
  5. Life Bug
    By LB in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 20th December 2008, 10:47 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
  •