User Tag List

Results 1 to 7 of 7

Thread: Setting an active to a counter health bar?

  1. #1
    No Products Registered

    Join Date
    Dec 2009
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Setting an active to a counter health bar?

    Is there anyway to set an active object to change it's position when the Horizontal counter bar subtracts? For example

    I have a head icon and I have a health bar. The health bar is synced up to the players health and I want the head icon to be synced up to the edge of the health bar and follow it as it subtracts. I know there are some tricks I can use to make it look like it's syncing up but I need it to actually be dependent on the healths current value.

    It's subtracting from the right.

    Like this
    Left to right Frame 1 Frame 2

    Hopefully I explained that well enough.

    [img:left]http://i3.photobucket.com/albums/y63/vashers/barexample1.png[/img] [img:left]http://i3.photobucket.com/albums/y63/vashers/barexample2.png[/img]


  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Setting an active to a counter health bar?

    Always

    -Set X of Counter to value("counter")*20+(starting position of counter)

    EDIT: Err, did I miss that the counter really is an active? In that case, use an Alt value or something

    EDIT 2: oh, and if your frames are getting smaller, just put the hotspot at the far right on all frames and always set the position at the face...

  3. #3
    No Products Registered

    Join Date
    Dec 2009
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Setting an active to a counter health bar?

    No the counter is the actual counter object, it's the head part that is an active. I just need the head active to follow the counter when it subtracts down. I know I could do an animation but that's like 300 something frames.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

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

    Re: Setting an active to a counter health bar?

    Edit -

    Ignore this, i posted a solution without testing but the counter works differently to how i was expecting when in Horizontal bar mode (resizes rather than fixed width).

  5. #5
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Setting an active to a counter health bar?

    just set it at an xposition, and move the position relative to the counter.

    if you have counter from 0-100, it might look something like this

    Always set position to 200 - counter

  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: Setting an active to a counter health bar?

    Yeah, sorry i posted above without testing then later when i tested the counter works differently to how i thought.

    What i did to get it working now was just -

    Set the counter to Horizontal Bar mode with From Left (Display Count), also set its hot spot and action point to center or whatever needed.

    Always -
    Active:
    Bring to front (stops a glitch on resize)
    Set X Position of Active to: X Right( "Counter" )

    For the active object (head graphic) and then just use the counter with 0-100 and you can resize the counter to any size needed. Then just set to whatever Y position wanted so you could have it overlayed or above etc.

  7. #7
    No Products Registered

    Join Date
    Dec 2009
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Setting an active to a counter health bar?

    Atom you are seriously a life saver!!

    It works perfectly

Similar Threads

  1. [BUG] Counter not setting aways>random
    By paobrasil in forum iOS Export Module Version 2.0
    Replies: 7
    Last Post: 19th October 2012, 01:12 PM
  2. [bug] Setting the Counter's movement …
    By RayMarble in forum The Games Factory 2 - Technical Support
    Replies: 4
    Last Post: 26th August 2008, 11:25 PM
  3. Setting a counter to what you type?
    By TSC in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 1st June 2008, 07:57 PM
  4. Setting decimal places on a counter
    By maestro1 in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 14th April 2008, 06:13 AM
  5. Counter and Active
    By Jarzka in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 5th July 2006, 07:00 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
  •