User Tag List

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

Thread: OR operators, differences and usage?

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCSWF Export Module
    N64Mario's Avatar
    Join Date
    Nov 2008
    Location
    USA
    Posts
    1,308
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)

    OR operators, differences and usage?

    I looked at the help contents to find out about the OR operators, and how they worked. I still don't know the differences between OR (filtered) and OR (logical). Can someone explain to me the differences of how it is read?
    For example, differences between:
    Event 1
    -Condition 1
    OR
    -Condition 2

    Event 1
    -Condition 1
    OR (Logical)
    -Condition 2

    I was trying to fix my game using OR operators, but there were a few differences I noticed after using OR (filtered). I don't know if it was a mistake on my side, or if it was using the OR operators that changed it slightly.

    Also, is there a limit on how many OR operators can be used per line of events in one condition? Or is it unlimited?

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: OR operators, differences and usage?

    Here's a showcase picture explaining the difference.
    http://clickteam.info/looki/Pictures/OrDifferences.png

    There's no OR limit. I'm not aware of any, that is.

  3. #3
    Clicker Multimedia Fusion 2
    dragonguy's Avatar
    Join Date
    Apr 2008
    Location
    RULE BRITANNIA!
    Posts
    3,071
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: OR operators, differences and usage?

    If you don't put ORs in then MMF2 will assume you mean AND instead.

  4. #4
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,846
    Mentioned
    11 Post(s)
    Tagged
    1 Thread(s)

    Re: OR operators, differences and usage?

    Looki, I set the same event as your picture. But, it seems not to work correctly.

    http://www7a.biglobe.ne.jp/~bp-827z/.../ORnotwork.mfa

    In this event, when the other object collides with the background, both are destroyed.

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: OR operators, differences and usage?

    Strange! That must be a bug. I am very sure the code is correct. I'll ask on Gwerdy Chat.

  6. #6
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCSWF Export Module
    N64Mario's Avatar
    Join Date
    Nov 2008
    Location
    USA
    Posts
    1,308
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)

    Re: OR operators, differences and usage?

    Quote Originally Posted by ASD
    Looki, I set the same event as your picture. But, it seems not to work correctly.

    http://www7a.biglobe.ne.jp/~bp-827z/.../ORnotwork.mfa

    In this event, when the other object collides with the background, both are destroyed.
    It's because its destroying both objects no matter if red hits bg, or green hits bg. That's what I assumed when experimenting with OR operators.

    So I think what is happening is (if this is apparently a bug), the OR (filter) operator is acting like an OR (logical) operator as the bug. That's what I got when I looked at the image file of how the OR operators are supposed to work. Am I right on this?

  7. #7
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: OR operators, differences and usage?

    Yeah OR (filtered) has had object selecting issues for me too, but use it anyway and hope it works correctly!
    Working as fast as I can on Fusion 3

  8. #8
    Clicker Multimedia Fusion 2 Developer

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

    Re: OR operators, differences and usage?

    It works correctly if you use "is overlapping backdrop" instead of "collides with backdrop".

    CT?

  9. #9
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: OR operators, differences and usage?

    "Collides with backdrop" is a true condition, they shouldn't be used with filtered OR's.

    The reason why only false conditions work with filtered OR's is that MMF2 must check all the conditions in the event to filter out the objects to perform the actions to. However, true (red) events aren't checked on demand like this. Just because one collision condition in the event triggered, MMF2 can't just check the other collision event under the OR, because it's a true event. True events are triggered when the collision actually occurs, and the event may even run out of the event order.

  10. #10
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: OR operators, differences and usage?

    I don't think "collides with backdrop" is a true(?) condition/trigger. It's not red. It's only true for one frame, but it's no triggered condition.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Logical operators?
    By Storsorgen in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 14th November 2012, 05:31 PM
  2. Least operators to test if X == Y
    By Pixelthief in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 20th May 2012, 05:02 PM
  3. Logical Operators?
    By Kamina in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 12th December 2010, 11:14 AM
  4. operators
    By stAtrill in forum The Games Factory 2 - Technical Support
    Replies: 3
    Last Post: 24th September 2009, 03:42 PM
  5. OR operators why not Never ?
    By Corentin in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 29th June 2009, 08:23 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
  •