User Tag List

Results 1 to 9 of 9

Thread: Lifebar.

  1. #1
    Clicker Multimedia Fusion 2
    Valerien's Avatar
    Join Date
    Jun 2008
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lifebar.

    Hi,

    I'm actually working on a life bar. I've made the assets for it (the decoration and the life bar), but I have a little problem to use it in mmf2.

    (here it is)

    Well, because of the shape of the bar, I cannot use a simple scaling of it. So, I would like to know how I can do it please ?


    Thanks in advance =3.

  2. #2
    No Products Registered

    Join Date
    Feb 2008
    Location
    uk
    Posts
    367
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Lifebar.

    sorry cant help you, but NICE ARTWORK!!!!!!!!

  3. #3
    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: Lifebar.

    I would separate it out into two different objects, using what you have just now as a background to a counter object that goes over the top of it. The "Animation" type of counter allows you to have a counter represent its current value as a range of animation frames - only include the piece that will change in the animation, to avoid having to redraw too much if the decoration around the bar section changes.

  4. #4
    Clicker Multimedia Fusion 2

    Join Date
    Jun 2007
    Location
    Suffolk, UK
    Posts
    435
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Lifebar.

    I'd probably adjust the artwork slightly so that there is a metal border around the thin part of the life bar, then make the life bar part transparent and put a red counter bar behind it.

  5. #5
    No Products Registered

    Join Date
    Jul 2006
    Location
    Umeå, Sweden
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Lifebar.

    I have an extension in the works called "Interface Bar"
    It should be able to do this with ease!

    It works like a counter but with a graphical display that supports Static and Animated bars, with or without background!

    To be released shortly!

  6. #6
    Clicker Multimedia Fusion 2
    Valerien's Avatar
    Join Date
    Jun 2008
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Lifebar.

    Quote Originally Posted by DavidN
    I would separate it out into two different objects, using what you have just now as a background to a counter object that goes over the top of it. The "Animation" type of counter allows you to have a counter represent its current value as a range of animation frames - only include the piece that will change in the animation, to avoid having to redraw too much if the decoration around the bar section changes.
    Well, the problem is that the max HP value will change a lot during the game, so It'd be tricky to work with images (surely a lot, because I use a fade when the bar moves).
    I really would like something which destroy/draw a part of the bar (Wanna keep it like that).

    Isn't overlay able to do this (I've heard of it many times but I don't know were I can find it) ?

    Thanks for your replies.

  7. #7
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)

    Join Date
    Sep 2007
    Location
    Austria
    Posts
    289
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Lifebar.

    Well...I am a dumb MMF2 user that likes to create games but does not have too much knowledge. My "solutions" are always too confusing and more complicated than they should be. If the solution is easy I go for a difficult one. LOL

    Ok...I don't know if this is what you need but I would use an active object of your sword.

    The health bar is 100. When your player is hit he loses 10 points or 5 or 30...in steps of 5 => he can't lose 13 or 2 or something like that.

    The active object has a lot of animations.

    Animation frame = 100 -> long sword.
    Animation frame = 90 -> a little bit shorter.
    If you use steps of 5 your sword would have 20 animations, going from short to long. Like this:

    (xxx)================
    (xxx)===============
    (xxx)==============
    etc.
    (xxx)===

    (this should be a sword)
    The sword should have a start and an end part with some repeatable texture in between. Like seamless background textures.

    Do you know what I mean?

    In the event editor the code is something like this:

    if health = 100 then play animation "100 health"
    if health = 95 then.... "95 health"
    if health = 30 then..."30 health"

    and so on and so forth.

  8. #8
    Clicker Multimedia Fusion 2
    Valerien's Avatar
    Join Date
    Jun 2008
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Lifebar.

    That's what DavidN said, in more complicated. And this method is really bad : the life of the character will increase during the game, and, most of all, this isn't an economic method.

    If I can't do it with the overlay, I'll make a graphical extension (surely openSource).

  9. #9
    No Products Registered

    Join Date
    Jul 2006
    Location
    Umeå, Sweden
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Lifebar.

    As stated above, I have a finished beta of an interface bar extension, created to do stuff like this easier... If you have any interest in this, PM me and we'll talk further!

Similar Threads

  1. Lifebar issues
    By darkmanx_429 in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 1st November 2013, 04:22 PM
  2. Problem with lifebar
    By Warmachine in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 23rd September 2013, 12:04 PM
  3. Lifebar help...
    By Amir in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 26th July 2013, 09:39 AM
  4. Circular lifebar
    By Blackwolfdave in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 7th August 2012, 05:40 AM
  5. special lifebar
    By elautor in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 26th October 2007, 11:23 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
  •