User Tag List

Results 1 to 6 of 6

Thread: Alterable Value choices

  1. #1
    No Products Registered

    Join Date
    Jul 2006
    Posts
    43
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Alterable Value choices

    Hi all,

    Is there any way of choosing an object based on which has the highest alterable value (e.g.:a)??

    I cannot get it to choose one object at a time in this way.

    What I need:


    Every 0.01 seconds
    Select object from "group" with the highest value a

    If anyone can help before I throw my PC out of the window id really appreciate it <img src="/center/images/graemlins/wink.gif" alt="" />

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jun 2006
    Posts
    1,324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Alterable Value choices

    Oh dear, that's another of Burkey's most useful extensions that isn't converted for MMF2 <img src="/center/images/graemlins/frown.gif" alt="" />

    However, you can still do this the long way:
    http://www.clickteam.com/CTforum/showfla...amp;o=&amp;vc=1

  3. #3
    No Products Registered

    Join Date
    Jul 2006
    Posts
    43
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Alterable Value choices

    Thanks, thats useful; though I cant get it to work in the right way on this game...

  4. #4
    No Products Registered

    Join Date
    Jul 2006
    Posts
    63
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Alterable Value choices

    Perhaps:

    Compare two general values

    Alterable Value A("the object") &gt; Alterable Value A("the object")

  5. #5
    No Products Registered

    Join Date
    Jul 2006
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Alterable Value choices

    Spread an alterable value in the group, then do a fast loop that checks each one individually. Keep track of the highest value A you've found (using a global value or an array or whatever), and each time you find an object with a value A that's higher, you take it's fixed value (likewise storing it globally), overwriting the last one you found.

    Something like this:

    + Condition Whatever
    Spread alterable value B in "Group"
    Run fast loop "CheckObjects" Num("Group") Times

    + On loop "CheckObjects"
    + Alterable Value B("Group") = LoopIndex
    + Alterable Value A("Group") &gt; Global Value A
    Global Value B = Fixed Value("Group")
    Global Value A = Alterable Value A("Group")

    This should set Global B to the fixed value of whichever object has the highest Alterable Value A.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    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)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)

    Re: Alterable Value choices

    I believe this is the easiest way:

    I assume all the related objects share the same behavior

    * every 0.01:
    : Set Counter1 to maxPossibleValue
    : Start loop "check" maxPossibleValues times

    * On loop "check"
    + pick objects with alterable value = counter1
    + pick one of group1
    : set counter1 to -1
    : destroy group1 (or some other action like set a flag)

    * on loop "check"
    : subtract 1 from counter1

    maxPossibleValue is like the names tells, the highest value an object can have.

Similar Threads

  1. Can someone explain the Display options choices?
    By TheDigitalAlchemist in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 19th June 2012, 04:35 PM
  2. Choices, choices
    By Jafa in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 26th February 2010, 03:35 AM
  3. Alterable Strings and Alterable Values limit :(
    By Pedro Almeida in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 13th October 2006, 06:38 AM
  4. Alterable Value and Alterable String conflict
    By Patrick in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 28th September 2006, 02:51 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
  •