User Tag List

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

Thread: Simple question about OR statements

  1. #1
    No Products Registered

    Join Date
    Apr 2008
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Simple question about OR statements

    Hypothetical event:

    -CONDITION 1
    -CONDITION 2
    -Player not overlapping A or B
    ---Do things

    From my understanding, I need to structure this as:

    -CONDITION 1
    -CONDITION 2
    -Player not overlapping A
    OR
    -CONDITION 1
    -CONDITION 2
    -Player not overlapping B

    (Logical and filtered do not matter, events pertain to player not A or B)


    But is there a way to avoid the repetitions of condition 1 and 2?

  2. #2
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)

    Re: Simple question about OR statements

    You could put A and B into a qualifier group and test that.
    Then you wouldn't even need the OR condition.

  3. #3
    No Products Registered

    Join Date
    Apr 2008
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Simple question about OR statements

    Well I am, I should have went into more detail in my original post.

    I have a qualifier for objects which the player can land on, but because backdrops can't be added to qualifiers I need to add an OR statement to qualify for both. This wouldn't be a big deal, but I'm afraid as I delve into this project and events get into the possible 10 condition range, an OR statement for just this situation will just bog down the program when there might be an easier way to go about it.

  4. #4
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)

    Re: Simple question about OR statements

    If they are backdrops you can't detect exactly which backdrop object the other object is overlapping -- its going to be an any of them or none of them type of situation.

  5. #5
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Simple question about OR statements

    He means he has both backdrops and actives that the player can land on, I think.

    I usually just make a new event. It messes up the scrolling to have a huge event.

  6. #6
    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: Simple question about OR statements

    Why would you need a "Not Overlapping A or Not Overlapping B" event for? I can't think of a situation for that. Do you perhaps mean "Not Overlapping A and Not Overlapping B" ? For that you could just do both Not Overlapping conditions in the same event...
    Working as fast as I can on Fusion 3

  7. #7
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Simple question about OR statements

    He already explained. It pertains to backdrops and actives.

  8. #8
    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: Simple question about OR statements

    I understand that part, but what I do not understand is the reason he wants to use or.
    Working as fast as I can on Fusion 3

  9. #9
    Clicker Fusion 2.5
    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
    Jul 2006
    Location
    New Jersey, USA
    Posts
    69
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Simple question about OR statements

    I agree with LB

    -CONDITION 1
    -CONDITION 2
    -Player not overlapping A
    -Player not overlapping B
    ---Do things

    Wouldn't this produce the desired results?


  10. #10
    No Products Registered

    Join Date
    Apr 2008
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Simple question about OR statements

    @LB: Correct, it would. A bit of a goof on my part.

    I need Player overlapping A or player overlapping B as well though, so the issue still stands.

    @Jeff: I don't care which backdrop it's overlapping, just that it's overlapping one. The problem is I have a qualifier for all actives which stop the player, but also need to test for obstacles as well.



    What I've ended up doing is setting up an event when I need to test an OR and testing against that --

    -Player overlapping A
    OR
    -Player overlapping B
    --- Flag 0 on

    -Player not overlapping A
    -Player not overlapping B
    --- Flag 0 off

    -CONDITION 1
    -CONDITION 2
    -Flag 0 on
    ---Do whatever


    So far this seems to be working well, but as always you have to weary about the conditionals changing throughout the code if there's events between flag changing and "do whatever"'s. But this is a correctable issue where 15 conditionals in an event can cause more problems.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. In a deep hole: [OR Statements]
    By ProdigyX in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 21st June 2016, 05:47 PM
  2. If statements
    By Jibs in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 2nd November 2011, 07:31 AM
  3. simple question
    By trav101 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 5th May 2011, 12:07 AM
  4. Red condition statements
    By Dave in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 19th December 2010, 07:10 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
  •