User Tag List

Results 1 to 3 of 3

Thread: number of overlapping objects

  1. #1
    No Products Registered

    Join Date
    Jul 2006
    Location
    USA
    Posts
    151
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    number of overlapping objects

    I am trying to make a sudoku solver and I am stuck because I don't know how to compare the number of objects overlapping another. Eg Number of "active" overlapping "active 2" > 2.

  2. #2
    No Products Registered

    Join Date
    Jul 2006
    Location
    Umeå, Sweden
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: number of overlapping objects

    loop through all objects using a fast loop and check each individual object... if it overlaps add 1 to a counter/alterable value... if value &gt; 2... you're good to go <img src="/center/images/graemlins/wink.gif" alt="" />

    Code:
    + Start of frame
    -   Spread value A = 0 in "active"
    
    + whatever trigger here
    -   Start fast loop "check objects" (count "active") times
    
    + On loop "check objects"
    + Value A of "active" = loopindex("check objects")
    + "active" is overlapping "active2"
    -   Add 1 to Counter
    something like that

  3. #3
    No Products Registered

    Join Date
    Jul 2006
    Location
    USA
    Posts
    151
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: number of overlapping objects

    Thanks, that worked. Now I need to do the same, but only start the loop if two of the actives are overlapping and facing the same direction.

Similar Threads

  1. Counting Number of Objects Overlapping Another Object?
    By Verbage in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 28th April 2012, 09:16 PM
  2. Overlapping Objects
    By ad in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 25th March 2010, 06:49 AM
  3. 2 objects are overlapping with same value?
    By Skeets in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 5th March 2009, 06:46 AM
  4. Help! Objects Overlapping
    By Eliyahu in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 10th February 2008, 05:20 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
  •