User Tag List

Results 1 to 9 of 9

Thread: Advanced overlapping detection ?

  1. #1
    No Products Registered

    Join Date
    Mar 2011
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Advanced overlapping detection ?

    Hi there !
    I've been looking for a way to do that for quite a long time, but so far I didn't find anything. For my project, I need to detect whether two object are completely overlapping or not. (for example Object 1 is completely hidden by Object 2)

    Do you know if there is a way to do that ?

  2. #2
    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: Advanced overlapping detection ?

    Yes: you have a thin object as the outline for the bigger object and if the smaller object is overlapping the bigger but not the outline then it is a full overlap. It works if they are the same size, too, but in any case the outline needs to never overlap with its object.
    Working as fast as I can on Fusion 3

  3. #3
    No Products Registered

    Join Date
    Mar 2011
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Advanced overlapping detection ?

    Well, this could work with for rectangular object. What is rather problematic is that my objects are very randomly shaped. But anyway thank you for the advice

  4. #4
    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: Advanced overlapping detection ?

    The shape does not matter, and the outline doesn't even have to be thin - it can be as simple as inverting the transparency if your object.
    Working as fast as I can on Fusion 3

  5. #5
    No Products Registered

    Join Date
    Mar 2011
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Advanced overlapping detection ?

    Well I know that the shapes isn't a problem to have your solution working. (anyway ,any object in MMF2 is rectangular whatever it may look) But what the player sees does matter and your solution might trigger events when it is not necessary.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jun 2006
    Location
    St. Ave France
    Posts
    1,166
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Advanced overlapping detection ?

    if theres transparent bits inside, like a window, you would need to reflect that too in the "outline"..

    the obvious downside is for every object, you need an outline object , so if theres lots, you're gonna hit the frame rate hard.

  7. #7
    No Products Registered

    Join Date
    Mar 2011
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Advanced overlapping detection ?

    Indeed, that could work. If I create an outline object, I can test if my active is overlapping the object itself and is not overlapping the outline object. If that's true ,that means my object is hidden.

    By the way, do you know if there is a way to test whether or not an object is overlapping an object that is on another layer ?

  8. #8
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Advanced overlapping detection ?

    If the object to be overlapped is stationary, can you not use its x,y position with the x,y of the overlapper?

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  9. #9
    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: Advanced overlapping detection ?

    Quote Originally Posted by donmanolo
    Indeed, that could work. If I create an outline object, I can test if my active is overlapping the object itself and is not overlapping the outline object. If that's true ,that means my object is hidden.
    THis is exactly what I was suggesting...also, it may be helpful to note that invisible objects can still collide, even with visible objects.
    Working as fast as I can on Fusion 3

Similar Threads

  1. Collision Detection with Backdrops Overlapping Each Other
    By stevenart1988 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 11th July 2013, 01:39 PM
  2. Question: Collision detection for overlapping objects
    By ardo in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 11th February 2012, 06:08 PM
  3. 'Manual box colission' VS 'Built in colission detection ( fine detection checked )'
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 8th February 2012, 09:32 PM
  4. Use Fine Detection [checked] VS Use Fine Detection [unchecked]
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 26th January 2012, 08:32 PM
  5. Bug with overlapping collision detection?
    By mobichan in forum SWF/Flash Export Module Version 2.0
    Replies: 5
    Last Post: 2nd April 2010, 11:16 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
  •