User Tag List

Results 1 to 5 of 5

Thread: Difference between OR (filtered) and OR (logical)?

  1. #1
    No Products Registered

    Join Date
    Apr 2010
    Location
    Dr. Robotnik's Base
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Difference between OR (filtered) and OR (logical)?

    What is the difference between OR (filtered) and OR (logical)?

    I'm making an action where I want an action to be performed when four different keys are pressed (not simultaneously).

    To be more specific:
    Upon pressing Z
    OR
    Upon pressing X
    OR
    Upon pressing C
    OR
    Upon pressing V
    +While animation "flying" is playing for "Normal"
    THEN etc.

    Will pressing any one of those keys perform the same action? And would it perform the same action as with OR (Logical)?

  2. #2
    Clickteam Clickteam
    Olivier's Avatar
    Join Date
    Jun 2006
    Posts
    3,000
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)

    Re: Difference between OR (filtered) and OR (logical)?

    Same question, same answer:
    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=187928#Post1879 28

  3. #3
    Clicker Multimedia Fusion 2 Developer

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

    Re: Difference between OR (filtered) and OR (logical)?

    Oliver, that thread is about a bug specific to "Object: On collision with other object" inside filtered OR. I don't think it answer's Na's question.

    Na, that last line "While animation .." will only be tested for "Upon pressing V" and not the other keys. Is that what you wanted?

    OR filtered and OR logical only work differently when the different sides of the OR don't work with the same objects. A filtered OR will only run actions for objects that passed conditions relating to them, a logical OR will treat an object that's not tested at all as needing actions run for all of them.
    This is easier to understand with an example:
    A overlaps background
    OR (filtered)
    B overlaps background
    -Destroy A
    -Destroy B
    -Destroy C

    is equivalent to:
    A overlaps background
    -Destroy A
    -Destroy C
    B overlaps background
    -Destroy B
    -Destroy C

    (i.e. A and B are only destroyed if they pass their own condition. C is always destroyed because it has no condition)

    A overlaps background
    OR (logical)
    B overlaps background
    -Destroy A
    -Destroy B
    -Destroy C

    is equivalent to:
    A overlaps background
    -Destroy A
    -Destroy B
    -Destroy C
    B overlaps background
    -Destroy A
    -Destroy B
    -Destroy C

    (i.e. If the A overlap check passes, then all B will be destroyed, the same as if it was two separate events with the exact same actions)

  4. #4
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 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)

    Join Date
    Jun 2006
    Location
    Killeen, TEXAS
    Posts
    1,062
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Difference between OR (filtered) and OR (logical)?

    Upon pressing Z
    +While animation "flying" is playing for "Normal"
    OR
    Upon pressing X
    +While animation "flying" is playing for "Normal"
    OR
    Upon pressing C
    +While animation "flying" is playing for "Normal"
    OR
    Upon pressing V
    +While animation "flying" is playing for "Normal"

    (or's are filtered)

  5. #5
    Clickteam Clickteam
    Olivier's Avatar
    Join Date
    Jun 2006
    Posts
    3,000
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)

    Re: Difference between OR (filtered) and OR (logical)?

    I was actually refering to Fimbul's post, but I could have been more accurate.
    To make all the events to work the same by using OR, all the conditions must be repeated (see danjo's post above).

    And it could also work without using OR. I would personally code it that way:
    Code:
    • Upon pressing Z
    + While animation "flying" is playing for "Normal"
       - //perform action
    
    • Upon pressing X
    + While animation "flying" is playing for "Normal"
       - //perform action
    
    • Upon pressing C
    + While animation "flying" is playing for "Normal"
       - //perform action
    
    • Upon pressing V
    + While animation "flying" is playing for "Normal"
       - //perform action

Similar Threads

  1. OR (filtered) question
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 5th May 2010, 12:42 AM
  2. Difference between OR and OR (Logical)
    By wizkidweb in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 11th September 2009, 12:19 AM
  3. OR (filtered) and OR (logical)?
    By Iharmi in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 25th August 2008, 12:49 PM
  4. Filtered OR (I think I get it, but )
    By Tuna in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 31st March 2008, 07:37 AM
  5. No filtered OR when using Run this event once
    By JoKa in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 7th December 2007, 10:12 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
  •