User Tag List

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

Thread: Object Qualifiers

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator ProPatch Maker
    coreyschroeder's Avatar
    Join Date
    Apr 2014
    Location
    ATX
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Object Qualifiers

    I am working on a small inventory app for my business - I would love to create a "filter" to search for objects within specific parameters.. I've been able to achieve this "filter" ability by grouping certain objects together with qualifiers..
    My problem, is that I need to create more groups than the number of available qualifiers that come with fusion.

    Is there any workaround? Or any way to creat custom groupings without relying on the predefined qualifiers?

    Thanks!

  2. #2
    Clicker Fusion 2.5Fusion 2.5+ DLC
    casleziro's Avatar
    Join Date
    Mar 2013
    Location
    United States
    Posts
    646
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Why not designate a value to identify objects? 1 for group 1 2 for group 2 etc

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export Module

    Join Date
    Apr 2014
    Posts
    108
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That is pretty smart really, I'd guess they would need to be in some master qualifier for the multi-object comparison condition?

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator ProPatch Maker
    coreyschroeder's Avatar
    Join Date
    Apr 2014
    Location
    ATX
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @casleziro - Thanks for taking the time to reply to my post. I apologize, but I don't quite follow the solution that you are proposing. Would you mind shedding a little more light onto what you mean?

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    rubes's Avatar
    Join Date
    May 2011
    Posts
    364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I believe casleziro is indicating you could use an alterable variable, title it group, and then assign numerical values for your groups to that alt variable. You could then use a for each loop or fast loop to cycle through and find the particular group number you are looking for.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export Module

    Join Date
    Apr 2014
    Posts
    108
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here as an example that uses a master qualifier for condition filtering, and Alterable Value comparisions for fine grained grouping.

    Where this has limits is you'd start to run into issues with one-to-many qualified groupings. Say one object needed to be in group 20, and 35, and 81. I've seen this sort of thing achieved with bitwise operators but I'm not sure how you'd do that here.

    You could maybe use a numbering->string->string parsing method to use each digit as an exclusive group control but that's a bit goofy huh. How many objects do you need to belong to multiple groups?


    qual-groups.mfa

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export Module

    Join Date
    Apr 2014
    Posts
    108
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    With numbers you can create subsets though if you are careful.
    For instance there are database tables that have the capability of sorting by decimal keys.

    Imagine you have 3 items, A B C
    the ID of A = 0.0
    the ID of B = 0.5
    the ID of C = 1.0

    Now you want to insert D in such a way that D can be included in neighbor based subsets relative to A and B
    the ID of A = 0.0
    the ID of D = 0.25
    the ID of B = 0.5
    the ID of C = 1.0

    You can now select any number of sets based off of value range assessment. ID <=1.0 selects all, ID <>0.25 selects all but D, ID <= 0.25 selects A,D.
    This pattern can also be subdivided practically infinitely. If you plan your sets properly I think this can have some special use.

    BUT, all told, Snail is right. string based is a lot better suited to associative array style name sets. The above really has specific applications that probably aren't relevant, I just like discussing theory.

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleMac Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    JHale's Avatar
    Join Date
    Dec 2013
    Posts
    331
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Snail View Post
    Alterable values are inappropriate in this situation. Please use alterable strings instead--they'll make your life much easier. Rename Alterable String A on all of your actives with a qualifier (if needed) to Type, and then whenever you create an object with this qualifier, you must define its type. When you want to find this object again, find it through the alterable string Type much the name you want. For Each loops probably aren't even going to be necessary here.

    Good luck!
    This is a great idea!

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export Module

    Join Date
    Apr 2014
    Posts
    108
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do we know if the app is PC only? In that case he could use associative arrays to manage not only qualifiers, but which objects with unique IDs belong to each qualifier. This would allows for as many multi-qualifier relationships as would be needed without any weird work-arounds. That could require fastlooping depending on the operation but it shouldn't be too sluggish.

  10. #10
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator ProPatch Maker
    coreyschroeder's Avatar
    Join Date
    Apr 2014
    Location
    ATX
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you all for your help!

    Man, even the famous Snail pitched in?!? I've seen all of your videos man - great stuff - thank you so much for taking the time to help out the community like that!

    I haven't had a chance to fire up fusion and play around with this today, so I haven't been able to test out everyones ideas.

    BossRighteous - to answer your question, this is something I actually plan on doing in HTML5, as I would love to add it to my website for customers to be able to search. In terms of your question earlier (how many items would need to belong to multiple groups?) - a lot.
    To give you a rough idea of what I'm trying to do - Imagine a used car dealership with an inventory app - you could filter the inventory results by: the color of the car, the cars manufacturer, 2 door, 4 door, under $5k, under $10k, under $20k, etc..
    As you can see, there would be multiple items that would occupy multiple "groups" - A ford taurus might be categorized in "4 door" "ford" "under $20k" etc.

    I'm trying to create this same basic idea but for a different industry with different products. I don't want to give away too much, as there is nothing like this currently on the market for this particular industry

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Changing object's qualifiers at runtime?
    By pirodaggar in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 17th July 2008, 07:07 AM
  2. Using object qualifiers in behavior events
    By Fisholith in forum The Games Factory 2 - Technical Support
    Replies: 5
    Last Post: 29th December 2007, 05:35 PM
  3. [CRASH] Layer object using qualifiers (243)
    By Joshtek in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 27th November 2006, 11:19 AM
  4. Object Qualifiers
    By xerus in forum Multimedia Fusion 2 - Technical Support
    Replies: 21
    Last Post: 6th July 2006, 09:25 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
  •