User Tag List

Results 1 to 5 of 5

Thread: Counter for new objects

  1. #1
    No Products Registered

    Join Date
    Feb 2010
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Counter for new objects

    I am creating an RTS game where the player can create new units. My only problem is that I cannot give the new units a number of lives. Is there any way to do that?

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Tisnart's Avatar
    Join Date
    Feb 2008
    Location
    On, Canada
    Posts
    1,073
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Counter for new objects

    Quote Originally Posted by ad
    My only problem is that I cannot give the new units a number of lives. Is there any way to do that?
    By this do you mean you want each unit to have its own HP?

  3. #3
    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: Counter for new objects

    You can't use the Lives object - that's for the user only. You'd have to use separate counters and spread an id through both them and the units. Then, have this event:

    + ID of Unit = ID of Counter
    - Set Counter to HP("Unit") //HP("Unit") being an alterable value within the Unit. Open up the Unit in the properties, go to the A-Z, and name an alterable value to HP)
    - Set position of Counter to (0, 0) from Unit //add an offset here so that the counter isn't right on top of the Unit, probably something like (0, -16) )

  4. #4
    Clicker Multimedia Fusion 2 Developer

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

    Re: Counter for new objects

    You actually don't need to bother keeping the counters matched with specific units, MMF will auto-associate them. The counters could swap between different units, but because you're setting the position and value at the same time the one above each unit will always be showing that unit's health.
    Just make sure you always have the right number of counters.

  5. #5
    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: Counter for new objects

    Oh, right. I forgot! Thanks for clarifying Dynasoft!

Similar Threads

  1. Counter Objects as Energy bars?
    By Crls in forum SWF/Flash Export Module Version 2.0
    Replies: 6
    Last Post: 16th January 2013, 08:21 AM
  2. add 1 to counter based on an objects y coordinate
    By mrmdesign in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 14th July 2011, 02:43 PM
  3. Placing an ID on Counter Objects
    By ZayLong in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 29th August 2008, 01:26 AM
  4. Neither Counter nor Score objects will appear?
    By Jocastus in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 12th May 2008, 03:10 PM
  5. Counter won't stay in front of backdrop objects
    By FormerTGFGuy in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 17th March 2007, 11:52 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
  •