User Tag List

Results 1 to 5 of 5

Thread: number of objects with a certain condition

  1. #1
    No Products Registered

    Join Date
    Sep 2006
    Location
    Germany
    Posts
    861
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    number of objects with a certain condition

    Is there an easy way to just show the number of objects of the same object that have an "alt value a" = 1 ?

    I want the mouse cursor(APO or Active, both will work) to check if it overlaps only one Active (actually its an APO) and not two or more.

    Any Idea on how I can achieve that?

  2. #2
    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: number of objects with a certain condition

    The simplest way I think is doing this:

    * Always
    - set counter to 0

    * Active is overlapping mousepointer (an active object)
    - add 1 to counter

    * if counter > 1

    //mouse is overlapping more than one object


    To do what you asked in your first sentence:

    * Always
    - set counter to 0

    * Alterable object of Active = 1
    - add 1 to counter

    * Counter2: set current value to counter

    //Counter2 to shows the number of actives with alterable A = 1

  3. #3
    No Products Registered

    Join Date
    Sep 2006
    Location
    Germany
    Posts
    861
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: number of objects with a certain condition

    Thanks Popcorn, but both ways do not work

    I uploaded an example to my webspace

    http://www.fromheaven.de/obj.mfa (35kb)

    Both counters stay at 1

  4. #4
    No Products Registered

    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    1,141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: number of objects with a certain condition

    You can do it with the "Select Object Extension"

    * Mouse pointer is over ("Active Picture")
    - Set counter to numSelectedByFixedV( "Select Object Extension", Fixed( "Active Picture" ))

  5. #5
    No Products Registered

    Join Date
    Sep 2006
    Location
    Germany
    Posts
    861
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: number of objects with a certain condition

    Thanks Werbad, that worked!

Similar Threads

  1. Returning number of objects under a specific condition
    By Ibis in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 14th November 2012, 01:23 AM
  2. Pick All Objects in Line Condition
    By PushTheLimit in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 16th July 2011, 04:30 AM
  3. Count objects meeting a condition
    By Zoglu in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 26th August 2009, 04:35 PM
  4. Set number of objects? what for?
    By Patrick in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 6th January 2008, 12:34 PM
  5. Maximum number of conditions in one condition row?
    By ichigo in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 18th November 2007, 11:58 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
  •