User Tag List

Results 1 to 4 of 4

Thread: Checking that all instances meet a condition

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Aug 2011
    Location
    Beverly Hills, CA USA
    Posts
    506
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Checking that all instances meet a condition

    How would I say:

    "When all instances of Object Type have an Animation Frame > 0"?

  2. #2
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,537
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Checking that all instances meet a condition

    Just check for the inverse. Check if any objects have animation frame less or equal to zero, and if they do, don't do the action. For example:

    Always:
    Set Flag 0 of "Some Unrelated Object" On

    Compare to animation frame of "Widget" <= 0 OR (logical) number of "Widgets" = 0:
    Set Flag 0 of "Some Unrelated Object" Off

    Is flag 0 of "Some Unrelated Object" On?:
    Do Stuff

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Aug 2011
    Location
    Beverly Hills, CA USA
    Posts
    506
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Checking that all instances meet a condition

    I appreciate the response, but I think I am missing something. I did what you described and it is not working.

    I should tell you I have two instances of an object. When someone does something in the UI they change their animation frame. When both have changed I want to them do the action I described.

    I was able to trick this out though by using your idea to go opposite day on the test. Instead of testing for ALL that are not frame 0, I simply always call the event I need to use to change the display and in there test if ANY have Animation Frame 0. If they do I simply exit out.

  4. #4
    mojofltr
    Guest

    Re: Checking that all instances meet a condition

    http://mfa.aquadasoft.com/upload/1314018210-Allani.mfa

    Here is a quick example that uses a similar method to what Pixelthief described.

Similar Threads

  1. Condition if any instances of object at same frame
    By Keith in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 13th August 2011, 02:14 PM
  2. How do I count how many actives meet a condition?
    By BREK in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 29th April 2010, 01:40 PM
  3. creating object C where A and B meet
    By FormerTGFGuy in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 23rd January 2007, 05:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •