User Tag List

Results 1 to 7 of 7

Thread: Problems creating a health bar

  1. #1
    No Products Registered

    Join Date
    Mar 2008
    Location
    Seattle, WA
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problems creating a health bar

    Hi everyone,

    I've been working with MMF2 Developer for a few months creating a prototype for my current project and it's been amazing!

    However, one of the issues I've been having a problem with is using the Counter Object to simulate a "health bar". A health bar should be able to accurately reflect the current health of a creature/thing/etc. using numbers to increase the counter or decrease the counter.

    Using a vertical counter with "count up" option checked, the problem is that although the counter bar seems to grow when I "add 10 to the counter" (in the event under the counter) and it does not shrink when I subtract 10 from the counter. All of the values are correct such as initial value, min value and max value.

    Perhaps I'm missing something but I can't seem to get my health bar to fluctuate on demand. Given that fact that being able to create a quick health bar would be most useful in video games I can't understand why a fluctuate option is seemingly not available via the counter object.

    Of course I could make a custom "active" object and create the functionality of a health bar that way but that's going to take a bit more work and it would be much easier using the counter's horizontal or vertical options.

    In general I've found the counter object to be a bit unstable. I used it to create a decrementing on-screen timer and sometimes it shows up and sometimes it does not. To solve the problem I created a custom active object.

    I've done a search of these forums but have not found an answer to my problem. Could anyone shed some light on something I may be missing?

    Thanks in advance!

    -Alex

  2. #2
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    Re: Problems creating a health bar

    What do you mean by fluctuate? You can easily make a counter bar increase or decrease by having actions that add or subtract values from it.

    If you want it to always decrease, then just have an event like:

    +Every X seconds
    -->Subtract 1 from counter

  3. #3
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problems creating a health bar

    Is it set to "display as backdrop"? It's probably still the default, and it causes problems with updating sometimes...

  4. #4
    No Products Registered

    Join Date
    Mar 2008
    Location
    Seattle, WA
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problems creating a health bar

    Thanks for the good advice. I believe my counters were corrupted somehow. I created new ones from scratch and they seem to work fine now. It's possible they may have been corrupted when I had opened them up in "animation" mode.

    -Alex


  5. #5
    No Products Registered

    Join Date
    May 2008
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problems creating a health bar

    ok what is happining with my vertical bar is it isnt showing up in the game can u tell me whats happining?

  6. #6
    No Products Registered

    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    1,141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problems creating a health bar

    What are the max/min values set to? Is Display as background checked?

  7. #7
    No Products Registered

    Join Date
    Jun 2007
    Posts
    149
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problems creating a health bar

    the same thing happend to me. i couldnt customize it or anything . it stayed the same color

Similar Threads

  1. Help creating a certain kind of health bar
    By Macaw in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 25th July 2013, 02:06 PM
  2. 2 problems with creating Java applet
    By isoetes in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 16th January 2013, 05:59 AM
  3. Having problems creating an installer for a theme
    By JamMasterClay in forum Install Creator and Patch Maker
    Replies: 2
    Last Post: 6th April 2011, 09:14 PM
  4. I'm having problems creating some special effects
    By Monokkel in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 10th September 2010, 08:16 PM
  5. Health Bar
    By PaulW in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 11th May 2007, 07:25 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
  •