User Tag List

Results 1 to 7 of 7

Thread: Enemy HP

  1. #1
    No Products Registered

    Join Date
    Mar 2009
    Posts
    412
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Enemy HP

    This shouldn't be too hard, but I want a simple solution I want my enemies to have X amount of HP (whatever number I want, and easy to change for harder enemies), and I want my bullet objects to hurt for as much HP as I want aswell.. Basically I dont know how to add "hit points" to enemies, and how to withdraw them when they get hit by the player bullets Got any simple ideas?

    If any examples are uploaded already, a link would be very much appreciated

  2. #2
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Enemy HP

    You can do this with an object's alterable values.

    Go to the Properties editor for the enemy object, click the "Values" tab (A-Z) and click "New" to name a new alterable value ("Damage" or "HP") - you can also give it a starting value. You can then change it and check it from within the event editor - subtract from it when a bullet hits the enemy, and then use the "Destroy" action when their HP is equal to or less than 0.

  3. #3
    Clicker Multimedia Fusion 2
    dragonguy's Avatar
    Join Date
    Apr 2008
    Location
    RULE BRITANNIA!
    Posts
    3,071
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Enemy HP

    Quote Originally Posted by DavidN
    You can do this with an object's alterable values.

    Go to the Properties editor for the enemy object, click the "Values" tab (A-Z) and click "New" to name a new alterable value ("Damage" or "HP") - you can also give it a starting value. You can then change it and check it from within the event editor - subtract from it when a bullet hits the enemy, and then use the "Destroy" action when their HP is equal to or less than 0.
    Dang! Didn't make it in time, I would have given you the same advice, DavinN knows what he's going on about, he rocks at MMF2.

  4. #4
    No Products Registered

    Join Date
    Mar 2009
    Posts
    412
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Enemy HP

    Ah yea I get it.. How would that look in the event editor?

  5. #5
    No Products Registered

    Join Date
    Oct 2009
    Location
    California US
    Posts
    119
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Enemy HP

    You could make a counter and set it up to bar format, personalize it and such, set is to always be at (blank) position from them, and set it at what you want. Then you subtract from counter as they get hit, and when it equals 0 you destroy them. That way you have hp and the player can see it.

  6. #6
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Aug 2006
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Enemy HP

    I made a simple HP system for RPGs a while back using counters to show what was happening in a simple way, might help maybe -

    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Main=22398&Number=1616 27


  7. #7
    No Products Registered

    Join Date
    Mar 2009
    Posts
    412
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Enemy HP

    ah, yea that could help. Im gonna explore how this works, thanks

Similar Threads

  1. Strange thing: If Enemy Alterable Value A = Enemy Alterable Value B
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 26th March 2012, 05:29 PM
  2. Enemy AI
    By Lucien in forum Multimedia Fusion 2 - Technical Support
    Replies: 44
    Last Post: 17th February 2012, 06:02 AM
  3. Enemy
    By Taceo in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 26th July 2010, 09:47 AM
  4. Enemy Help Please!
    By Gate001 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 6th June 2010, 01:54 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
  •