User Tag List

Results 1 to 5 of 5

Thread: life counters for instanced enemies

  1. #1
    Clicker Fusion 2.5iOS Export ModuleXNA Export Module

    Join Date
    Oct 2009
    Location
    Jacksonville, TX
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    life counters for instanced enemies

    I am looking for a way to set up life counters for multiple instanced enemies so that each enemy has a vertical bar showing its individual remaining life.

    I create an enemy and duplicate it. I then create a counter object, duplicate it and specify:

    Always set position at (0,0) relative to enemy

    Each instanced counter object sticks nicely to each instanced enemy--very cool, but when the player shoots and damages one enemy, both life counters show damage even though only one enemy actually lost life. I guess the deeper question here is, how do I get an alterable value from a specific instance of an object? Thank you!




  2. #2
    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)

    Re: life counters for instanced enemies

    Qualifiers would work I think. It would then only deduct the enemy that is hit.

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

  3. #3
    Clicker Fusion 2.5iOS Export ModuleXNA Export Module

    Join Date
    Oct 2009
    Location
    Jacksonville, TX
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: life counters for instanced enemies

    Thanks nivram,

    Could you elaborate please? Adding a qualifier to one of the enemies or counters will add it to all of them, since they are instanced duplicates, right? Each enemy has an alterable value for its life points that is discreetly modified when it takes damage, that is working fine. I just don't know how to get that unique value to each counter.

  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)

    Re: life counters for instanced enemies

    Are you are using duplicate counters? Can you use seperate counters for the enemies, or are there lots of enemies?

    Can you upload your mfa into the archives so we can look at it?
    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  5. #5
    Clicker Fusion 2.5iOS Export ModuleXNA Export Module

    Join Date
    Oct 2009
    Location
    Jacksonville, TX
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: life counters for instanced enemies

    Sorry but my .mfa seems to be too big to upload... I posted a screen grab of my event list, hopefully that gives an idea of what is going on. Thanks for the help!

Similar Threads

  1. Instanced active objects
    By JohnC in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 2nd November 2010, 08:36 PM
  2. Re: life counters for instanced enemies
    By jchristiansen in forum File Archive
    Replies: 9
    Last Post: 26th October 2009, 01:08 AM
  3. Creating life bars for enemies / boss characters
    By gamemaster in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 2nd February 2009, 10:33 AM
  4. Instanced Events
    By artician in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 20th May 2008, 01:07 PM
  5. Sound Volume from Instanced Source Objects?
    By Caiman in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 11th July 2007, 04:12 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
  •