User Tag List

Results 1 to 7 of 7

Thread: Count overlapping objects

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Mar 2007
    Location
    Burnaby, BC, Canada
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Count overlapping objects

    Hello all.

    I need to retrieve the number of objects overlapping a 'sensor' object as an action in a single event line, if it's possible.

    Right now I'm using a bunch of events to start counting, increment a counter, detect when the counting should stop and stop the counting. It's clunky and I constantly have to tinker with it every time I change other parts of my app.

    What I want is a single line that's basically "okay count them now", with a single counter update with the number of overlapping objects.

    I hope this hasn't come up before as I've been running forum searches for 40 minutes trying to find an existing topic on it.

  2. #2
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)

    Re: Count overlapping objects

    This should do the trick:

    http://ext.neatwares.ath.cx/ext/Select_Object

  3. #3
    Clicker Multimedia Fusion 2

    Join Date
    Mar 2007
    Location
    Burnaby, BC, Canada
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Count overlapping objects

    Interesting. Thanks, I'll try that out.

  4. #4
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Count overlapping objects

    Though I would recommend getting the most up-to-date version: here

  5. #5
    Clicker Multimedia Fusion 2

    Join Date
    Mar 2007
    Location
    Burnaby, BC, Canada
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Count overlapping objects

    Noted and done, thanks!

  6. #6
    Clicker Multimedia Fusion 2

    Join Date
    Mar 2007
    Location
    Burnaby, BC, Canada
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Count overlapping objects

    I still don't see how I can simply select everything overlapping my sensor object. But I think if i spread a value range across my objects, I can iterate through the list and mark up the ones that overlap with a value. Then SelectObject can select all the ones with that value, right?

  7. #7
    Clicker Multimedia Fusion 2

    Join Date
    Mar 2007
    Location
    Burnaby, BC, Canada
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Count overlapping objects

    Okay I take that back, don't need that spread values at all. The ability to set my counter to NumSelectedByName is just the one-line action I needed. On to the next challenge.

Similar Threads

  1. Really strange. Count of objects bug?
    By KLiK-iT in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 5th March 2013, 10:12 PM
  2. Count of objects where Alterable Value = n
    By Keith in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 27th December 2011, 10:24 PM
  3. looking for way to count objects
    By piki in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 25th June 2008, 02:28 AM
  4. Problem: Count Objects
    By Nifflas in forum File Archive
    Replies: 8
    Last Post: 18th March 2007, 06:47 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
  •