User Tag List

Page 4 of 5 FirstFirst ... 2 3 4 5 LastLast
Results 31 to 40 of 45

Thread: best way of comparing values and testing overlapping objects?

  1. #31
    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)
    No, it is not, and it is apparent why - if you make some units and wait for them to file to the end, then make one, and before it gets to the end make another, they will both keep moving until neither is overlapping. This is because MMF2 does not properly deal with object selection with negated events.
    Working as fast as I can on Fusion 3

  2. #32
    Clicker Multimedia Fusion 2 DeveloperiOS 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)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Back to the main issue

    ...
    Im just thinking here

    An overlapp condition performs Instance Selection right?
    But maybe the issue here is that the Selection only works within the Actions of the Event, not the Conditions?

    ...
    So when
    'If ObjectA is overlapping ObjectB'
    an instance selection is performed ( Only Objects wich meets the criteria are selected )

    But in the same event when
    'If ObjectA AlterableValue_ is different than ObjectB AlterableValue_'
    MMF2 treats it like
    'If ObjectA( Object ) AlterableValue_ is different than ObjectB( Object ) AlterableValue_'

  3. #33
    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)
    Object selection work on conditions that you retrieve from the object you want to be selected. As you go down the condition list the object selection will either stay the same or get narrower. If you use compare two general values, you are not changing the object selection, because this condition comes from the Special Object and not either of the objects you would want to select. Objects cannot be selected from expressions, and can only be selected from actions through the Create Object action.
    Working as fast as I can on Fusion 3

  4. #34
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by LB View Post
    This is because MMF2 does not properly deal with object selection with negated events.
    What did you mean by this? Why does it not deal properly with negated events?

  5. #35
    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)
    I don't know why, I didn't write MMF2 or see its source code ;p

    Basically, if you have a condition (Negate) Object A is overlapping Object B, you would expect it to select all object A and all Object B that are not overlapping the other. Unfortunately, if any Object A are overlapping any Object B, then the event just gets completely skipped because there are at least some objects overlapping.

    This is more a design flaw of MMF2 than anything else and I doubt it would be easy to fix.
    Working as fast as I can on Fusion 3

  6. #36
    No Products Registered

    Join Date
    Dec 2010
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    is there some extension or something i could at least use for doing collisions instead of using mmf2's overlapping?

  7. #37
    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)
    No, and if there were it would cause lag. Collisions in MM2 aren't sleeping beauty perfect, but they are fast and work well enough to get the gold. With extensions there would have to be several unnecessary steps of exchanging information and it would have to be done for all objects, which is much slower.

    EDIT: I believe that Looki's Surface Object handles its own collisions, but that's impractical for this scenario and you would still have the same negated event problems. This is less related to the collision system and more related to the event system and object selection.
    Working as fast as I can on Fusion 3

  8. #38
    No Products Registered

    Join Date
    Dec 2010
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i am using foreach now and my only problem now is that if two objects are overlapping where it doesn't apply and another object begins to trigger the event, it won't apply unless they are overlapping the last created object and then it applies it to every single object on screen.

  9. #39
    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)
    Yes, because, as I told you, it won't work.
    Working as fast as I can on Fusion 3

  10. #40
    No Products Registered

    Join Date
    Dec 2010
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    so what on earth am i supposed to do?

Page 4 of 5 FirstFirst ... 2 3 4 5 LastLast

Similar Threads

  1. comparing values on overlap
    By itsa_doozy in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 6th March 2013, 06:19 PM
  2. PROBLEM COMPARING FLOATING VALUES
    By Fernando in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 18th August 2011, 08:12 PM
  3. [BUG] PROBLEM COMPARING FLOATING VALUES
    By Fernando in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 6th August 2011, 05:40 PM
  4. Checking and comparing values of an object.
    By DEKE15 in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 10th May 2009, 10:47 PM
  5. Comparing 2 global values question
    By mobichan in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 19th January 2009, 04:23 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
  •