User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 15 of 15

Thread: Simple question about OR statements

  1. #11
    Clicker Multimedia Fusion 2SWF Export Module

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

    Re: Simple question about OR statements

    Be prepared for the fact that a

    "X not overlapping Y"

    condition will always return *false* if no objects of the latter (Y) type exist, which may make your code fail to work. For example, if you have a "Player is not overlapping a Goomba" condition, but no goombas exist, then logically it would return always false- the same as if you *were* overlapping a goomba.


    Just consider that and work around it logically. An easy workaround is to have a minimum of 1 of the object type on your frame, deactive, somewhere at all times

  2. #12
    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

    Or a condition to check for more than 0 goombas.
    Working as fast as I can on Fusion 3

  3. #13
    Clicker Multimedia Fusion 2SWF Export Module

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

    Re: Simple question about OR statements

    well I mean, if you want a generic event, like this:


    "If Mario Lands on the Ground"
    +
    "Mario is NOT overlapping a Goomba"
    +
    "Mario is NOT overlapping a Spike Trap"
    +
    "Mario is NOT overlapping a Lava"


    The event would never be able to work in a single event (sans "or" conditions) without malfunctioning when you don't have at least 1 goomba, 1 spike trap and 1 lava. Mario would never be able to land on the ground when all goombas were dead

  4. #14
    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 see your point, Pixelcrook. I guess it is easier to just add them to a qualifier and have a dummy object outside the frame also in the qualifier?
    Working as fast as I can on Fusion 3

  5. #15
    Clicker Multimedia Fusion 2SWF Export Module

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

    Re: Simple question about OR statements

    the *best* way to do it is to code around it by having it across multiple statements. Use false positives flags that tell you when you're overlapping the object

Page 2 of 2 FirstFirst 1 2

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
  •