User Tag List

Results 1 to 8 of 8

Thread: How does "overlap" work exactly?

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    diefox's Avatar
    Join Date
    Feb 2007
    Posts
    124
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    How does "overlap" work exactly?

    Just a simple question:

    Why "X is overlaping Y" is different than "Y is overlaping X".

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    988
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How does "overlap" work exactly?

    I don't think it is. I think it's the same condition. But I have no proof of this, just a general hunch. Anyone else know for sure?

  3. #3
    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: How does "overlap" work exactly?

    Yes, and no. For your uses, it is the exact same. MMF2 handles it slightly differently for collisions, but that only works when you get into the really complicated fastloop-collision systems where you need to make objects collide before their positions are updated and whatnot. It's rather complicated. I doubt you'll find a difference in them.

  4. #4
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleXNA Export Module
    ProdigyX's Avatar
    Join Date
    Jan 2011
    Posts
    1,197
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: How does "overlap" work exactly?

    If I understand correctly.....

    If "Apple" is overlapping "Orange"
    Set X position of Apple to 100

    This one affects only apples that overlaps an orange


    If "Orange" is overlapping "Apple"
    Set X position of Apple to 100

    This one affects all of the apples when any orange overlaps an apple.

    It kinda helps MMF2 select which object to do an action to.

  5. #5
    No Products Registered

    Join Date
    Aug 2010
    Posts
    343
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How does "overlap" work exactly?

    I hope this is not off topic -
    I have often wondered about the basic collision difference between
    "another (active) object" and
    "overlapping another object"

    If the object is moving can there more than a pixel or two between collide and overlap?

  6. #6
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleXNA Export Module
    ProdigyX's Avatar
    Join Date
    Jan 2011
    Posts
    1,197
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: How does "overlap" work exactly?

    Collision is a one time event kinda thing while overlapping is continuously happening as long as the event is true.

    For example;
    If Player collides "Red Active Object"
    Then Add 5 to score

    In this instance the first time the player collides with the "Red Active Object" 5 points will be added to the score. As long it is on the red active object, the event will not trigger again

    If Player is overlapping "Red Active Object"
    Then Add 5 to score

    In this instance, the initial collision (which i would think be the same pixel as the collision trigger) would add 5 points, and every frame the player is on the "Red Active Object" 5 points will be added to the score

  7. #7
    No Products Registered

    Join Date
    Aug 2010
    Posts
    343
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How does "overlap" work exactly?

    thanks ProdigyX
    That makes sense.

    love the learning.

  8. #8
    Clicker Multimedia Fusion 2SWF Export Module

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

    Re: How does "overlap" work exactly?

    As Jacob said, it can have different than expected results during fast loops due to the way the collision mask for objects is (not) updated in the middle of frames/loops, and it also matters which one is listed first in terms of object scoping, for writing the expressions themselves.

Similar Threads

  1. iOS Video: "stopped" and "paused" events don't work?
    By smart_fr in forum iOS Export Module Version 2.0
    Replies: 0
    Last Post: 25th August 2012, 01:03 AM
  2. EDIF extension doesn't work when "compress runtime" is disabled.
    By Nifflas in forum Extension Development
    Replies: 3
    Last Post: 27th February 2012, 11:14 AM
  3. How does the "Iterate Array" action in the Named Variable object work?
    By RGBreality in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 7th December 2011, 04:31 PM
  4. "Resize display to fill window size" doesn't work.
    By ASD in forum Hardware Accelerated Runtime
    Replies: 1
    Last Post: 13th March 2009, 05:52 PM
  5. Subapp and "Jump to a frame" action doesn't work
    By Tiny in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 2nd December 2008, 02:10 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
  •