User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15

Thread: Finding Lowest Value

  1. #1
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,003
    Mentioned
    20 Post(s)
    Tagged
    2 Thread(s)

    Finding Lowest Value

    Well the head's blagged after a further 9 hours of development. Trying to think of a way to find the lowest alterable A value of 8 objects... Usually I would be able to sit there n think for 20 minutes and come up with a solution, but I just can't seem to find one. Don't fancy using Arrays as the whole engine is condition based on every slight change, so array just not good enough. Thought of database, but don't want to bog the engine down.

    8 Independent Actives (not same object) > Alterable Value A of each holds a value.

    Need to find lowest out of the 8, anybody wanna throw something at me?
    Want to learn Clickteam Fusion 2.5?




  2. #2
    Clicker Multimedia Fusion 2

    Join Date
    Oct 2009
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Finding Lowest Value


  3. #3
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    California, USA
    Posts
    1,241
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Re: Finding Lowest Value

    OK, this is off the top of my head and I do NOT have MMF on this machine.

    idea 1:
    Pick on of the objects and use 7 of its Alternate Values to store the Alt_A values of the other 7 Actives. (use some common event to keep this updated) [example R thru Y]

    Create a group (not active)
    Set Alt_Z = Alt_A
    Using a series of events check to see if Alt_R is less than AltZ, if true set Alt_Z = Alt_R.

    Repeat for each alternate value. When complete you will have cycled thru R to Y and Alt_Z will be the lowest value. Close the group.

    This is most likely NOT the cleanest coding but for different objects it should work.

    idea 2:
    Put the 8 Actives in the same qualifier.
    When needed, spread a vaule to the qualifier Alt_Z (or any unused) value. Then with a loop check for the Qualifier Alt_Z value to be equal to the loop index AND the Alt_A value to be lower then say a global value. If true then set the global value (or some other holding location) to the Alt_A value.

    If you dont get a definitive answer soon let me know and I will try to work up an example.
    DT
    Special Projects Director

  4. #4
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,003
    Mentioned
    20 Post(s)
    Tagged
    2 Thread(s)

    Re: Finding Lowest Value

    okay, dragon's post seems a good manual way of doing it, same with DT's, but I did happen to come across the INI++ comment on drag's post which i had never used before either, seems interestingly able to find the lowest values without much work... although to me, using plugins and extensions are good, efficient and effective, to me it's not educational, i'd rather take the long, maybe untidy way round of doing the math's myself, so will scrap the ini++ object and try one of the manual ways, just for self pride haha!

    Will do it in the morning and give an update, need bed now before I end up waking up to a keyboard imprint again!
    Want to learn Clickteam Fusion 2.5?




  5. #5
    Clicker Multimedia Fusion 2 Developer

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

    Re: Finding Lowest Value

    Or for a less manual solution, check the Select Object, which I originally made for the sole purpose of finding the object with the highest/lowest alterable value...

    It essentially works the same as DT's 2nd method, looping all the objects and recording what the lowest value is as it goes.

  6. #6
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,003
    Mentioned
    20 Post(s)
    Tagged
    2 Thread(s)

    Re: Finding Lowest Value

    Say no more!
    Want to learn Clickteam Fusion 2.5?




  7. #7
    Clicker Multimedia Fusion 2 Developer

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

    Re: Finding Lowest Value

    So much for you going to bed :P

  8. #8
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,003
    Mentioned
    20 Post(s)
    Tagged
    2 Thread(s)

    Re: Finding Lowest Value

    lol, once I get stuck in hard to get away, I managed to get to bed in the end though! Gonna implement and test the methods now!
    Want to learn Clickteam Fusion 2.5?




  9. #9
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,003
    Mentioned
    20 Post(s)
    Tagged
    2 Thread(s)

    Re: Finding Lowest Value

    Rainchecked. Select object seems to do the job perfect. After thinking with a clear mind, I actually WOULD rather take this route than the extensive equation sorting conditions, i've already learnt enough in my time!

    Cheers Dyna, will ensure you are listed in Credits.
    Want to learn Clickteam Fusion 2.5?




  10. #10
    Clicker Multimedia Fusion 2 Developer

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

    Re: Finding Lowest Value

    Thanks

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Help with Highscore lowest score
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 19th May 2013, 03:56 PM
  2. from highest to lowest
    By daniele in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 13th January 2012, 04:29 PM
  3. Set to Lowest Value
    By Boba Fonts in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 1st September 2010, 12:13 PM
  4. Finding Lowest Global Value
    By GameDragon in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 6th November 2009, 04:16 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
  •