User Tag List

Results 1 to 5 of 5

Thread: Health bar above enemy

  1. #1
    No Products Registered

    Join Date
    Mar 2012
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Health bar above enemy

    Hi,

    Is there a way to have a health bar (horizontal counter) stay above an enemy and have it follow him around but remain above him?

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    Game_Master's Avatar
    Join Date
    Jul 2007
    Location
    England
    Posts
    1,705
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, add this event:

    + Always
    - [Counter] Set X Co-ordinate: X("Enemy")
    - [Counter] Set Y Co-ordinate: Y("Enemy")-12

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    1
    You have 2 Objects:
    - Enemy
    - Enemy Health ( Counter )

    2
    Give your Enemy an Alterable Value called Health_.

    3
    Whenever you create an Enemy, you create a Counter at the same time ( location not importaint ).
    This is very importaint.

    4
    In the Event Editor do:

    Allways
    - Set Counter position to Enemy position
    - Set Counter value to Enemy Health_

    If number of Counters is lower than number of Enemies
    + Pick Counter at random
    - Counter destroy

    ...
    This will make sure each Enemy has a Counter wich follows it and displays the health of the Enemy it is following.
    This also makes sure that when the Enemy is destroyed, its Counter is also destroyed.

  4. #4
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ConquerStone View Post
    Hi,

    Is there a way to have a health bar (horizontal counter) stay above an enemy and have it follow him around but remain above him?
    Hi ConquerStone. I have a health bar example and tutorial on my website. Maybe they will be of use to you.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  5. #5
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)

    Join Date
    May 2011
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was actually wondering this myself... thanks

Similar Threads

  1. Individual enemy health bars
    By Tabi in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 27th August 2012, 09:26 PM
  2. Need help with health !!!!
    By MostDreaded in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 28th December 2010, 02:28 AM
  3. Enemy Health Bars for DriftingFable
    By LB in forum File Archive
    Replies: 0
    Last Post: 30th April 2010, 12:53 AM
  4. Health Bar Example
    By nivram in forum File Archive
    Replies: 5
    Last Post: 25th January 2009, 09:18 PM
  5. health bar
    By brad in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 18th January 2009, 12:50 AM

Posting Permissions

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